changeset 243:cf4944faad96

Fixed testgl so that SDL_GL_Enter2DMode() allows alpha blending
author Sam Lantinga <slouken@libsdl.org>
date Thu, 22 Nov 2001 06:34:25 +0000
parents 4bcb29d3769c
children dc660aee7d7d
files test/testgl.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/testgl.c	Thu Nov 22 04:55:38 2001 +0000
+++ b/test/testgl.c	Thu Nov 22 06:34:25 2001 +0000
@@ -118,6 +118,10 @@
 	glDisable(GL_CULL_FACE);
 	glEnable(GL_TEXTURE_2D);
 
+	/* This allows alpha blending of 2D textures with the scene */
+	glEnable(GL_BLEND);
+	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+
 	glViewport(0, 0, screen->w, screen->h);
 
 	glMatrixMode(GL_PROJECTION);