Skip to content

Commit

Permalink
Fixed testgl so that SDL_GL_Enter2DMode() allows alpha blending
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 22, 2001
1 parent 6da4475 commit 0f5e56a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/testgl.c
Expand Up @@ -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);
Expand Down

0 comments on commit 0f5e56a

Please sign in to comment.