Fixed testgl so that SDL_GL_Enter2DMode() allows alpha blending

This commit is contained in:
Sam Lantinga
2001-11-22 06:34:25 +00:00
parent e58898392c
commit abd77ea5eb

View File

@@ -118,6 +118,10 @@ void SDL_GL_Enter2DMode()
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);