Fixed testgl so that SDL_GL_Enter2DMode() allows alpha blending
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40244
This commit is contained in:
parent
ea3595e3fb
commit
c374bc5b9f
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue