Commits

Christian Fischer committed 231bb12

enabled alpha blending on all existing engines

Comments (0)

Files changed (2)

src/common/wiesel/platform/android/android_screen.cpp

 	glDisable(GL_CULL_FACE);
 	glDisable(GL_DEPTH_TEST);
 
+	glEnable(GL_BLEND);
+	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+
 	// initialize the window's size
 	resize();
 

src/common/wiesel/platform/sdl/sdl_screen.cpp

 	glDisable(GL_CULL_FACE);
 	glDisable(GL_DEPTH_TEST);
 
+	glEnable(GL_BLEND);
+	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+
 	// setup viewport
 	glViewport(0, 0, w, h);