Skip to content
Permalink
Browse files

Fixed testgl so that SDL_GL_Enter2DMode() allows alpha blending

  • Loading branch information
slouken committed Nov 22, 2001
1 parent 6da4475 commit 0f5e56aef8f142c93d3b6fe9cfded747c1bbc3e9
Showing with 4 additions and 0 deletions.
  1. +4 −0 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);

0 comments on commit 0f5e56a

Please sign in to comment.