mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-11 21:47:12 +00:00
Trim Linux Iggy GL reset from tropicaaal and ffqq feedback
This commit is contained in:
parent
307212f4cd
commit
be3d53f101
|
|
@ -14,23 +14,12 @@ ConsoleUIController ui;
|
|||
|
||||
static void restoreFixedFunctionStateAfterIggy() {
|
||||
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||
glDepthMask(GL_TRUE);
|
||||
|
||||
glDisable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glEnable(GL_ALPHA_TEST);
|
||||
glAlphaFunc(GL_GREATER, 0.1f);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glDepthFunc(GL_LEQUAL);
|
||||
glEnable(GL_CULL_FACE);
|
||||
glCullFace(GL_BACK);
|
||||
glDisable(GL_STENCIL_TEST);
|
||||
glDisable(GL_SCISSOR_TEST);
|
||||
glDisable(GL_LIGHTING);
|
||||
glEnable(GL_COLOR_MATERIAL);
|
||||
glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE);
|
||||
glShadeModel(GL_SMOOTH);
|
||||
|
||||
glClientActiveTexture(GL_TEXTURE1);
|
||||
glActiveTexture(GL_TEXTURE1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue