(Android EGL) don't needlessly set up GL state after gfx_ctx_init

This commit is contained in:
twinaphex 2012-10-15 19:37:18 +02:00
parent 8ac8b16d34
commit ee1194d19a

View File

@ -24,12 +24,6 @@
#include <stdint.h>
enum RenderThreadMessage {
MSG_NONE = 0,
MSG_WINDOW_SET,
MSG_RENDER_LOOP_EXIT
};
static EGLContext g_egl_ctx;
static EGLSurface g_egl_surf;
static EGLDisplay g_egl_dpy;
@ -162,11 +156,6 @@ bool gfx_ctx_init(void)
g_android.height = height;
g_android.state.angle = 0;
// Initialize GL state.
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
glEnable(GL_CULL_FACE);
glDisable(GL_DEPTH_TEST);
return true;
}