Default values to GL_FILL in case driver refuses to return any

This commit is contained in:
baldurk
2014-11-16 21:39:22 +00:00
parent 6afe7b7cd1
commit 9440327dec
+1 -1
View File
@@ -766,7 +766,7 @@ struct RenderTextState
gl.glGetIntegeri_v(eGL_BLEND_DST_RGB, 0, (GLint*)&DestinationRGB);
gl.glGetIntegeri_v(eGL_BLEND_DST_ALPHA, 0, (GLint*)&DestinationAlpha);
GLenum dummy[2];
GLenum dummy[2] = { eGL_FILL, eGL_FILL };
// docs suggest this is enumeration[2] even though polygon mode can't be set independently for front
// and back faces.
gl.glGetIntegerv(eGL_POLYGON_MODE, (GLint *)&dummy);