diff --git a/test/testgl.c b/test/testgl.c index 4dcb26f61..d046e22c8 100644 --- a/test/testgl.c +++ b/test/testgl.c @@ -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);