improve Linux OpenGL 3.x context creation handling, don't crash if the shadowmap shader fails

add cursor-key support for Linux
This commit is contained in:
Erwin Coumans (Google)
2014-06-24 15:43:04 -07:00
parent 3480cb5eee
commit 8f94ced88a
6 changed files with 482 additions and 183 deletions

View File

@@ -5,6 +5,6 @@ static const char* createShadowMapInstancingFragmentShader= \
"layout(location = 0) out float fragmentdepth;\n"
"void main(void)\n"
"{\n"
" fragmentdepth = gl_FragCoord.z;\n"
" fragmentdepth = gl_FragCoord.z+0.0001*gl_FragCoord.x;\n"
"}\n"
;