WINTERMUTE: Remove glShadeModel calls from gles2 renderer shadow volume
This commit is contained in:
parent
10b0f884c6
commit
b0c8870a00
1 changed files with 0 additions and 3 deletions
|
@ -107,8 +107,6 @@ bool ShadowVolumeOpenGLShader::renderToStencilBuffer() {
|
|||
// renderstate is really not needed.
|
||||
glStencilFunc(GL_ALWAYS, 0x1, 0xFFFFFFFF);
|
||||
|
||||
glShadeModel(GL_FLAT);
|
||||
|
||||
// Make sure that no pixels get drawn to the frame buffer
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_ZERO, GL_ONE);
|
||||
|
@ -128,7 +126,6 @@ bool ShadowVolumeOpenGLShader::renderToStencilBuffer() {
|
|||
|
||||
// Restore render states
|
||||
glFrontFace(GL_CCW);
|
||||
glShadeModel(GL_SMOOTH);
|
||||
glDepthMask(GL_TRUE);
|
||||
glDisable(GL_STENCIL_TEST);
|
||||
glDisable(GL_BLEND);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue