mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 596034 - make sure gl_PointCoord is available in the shader language - r=vladimir, a=blocking-beta7
This commit is contained in:
parent
868cedad20
commit
b4b87e2c68
@ -450,6 +450,11 @@ WebGLContext::InitAndValidateGL()
|
||||
// gl_PointSize is always available in ES2 GLSL, but has to be
|
||||
// specifically enabled on desktop GLSL.
|
||||
gl->fEnable(LOCAL_GL_VERTEX_PROGRAM_POINT_SIZE);
|
||||
|
||||
// gl_PointCoord is always available in ES2 GLSL and in newer desktop GLSL versions, but apparently
|
||||
// not in OpenGL 2 and apparently not (due to a driver bug) on certain NVIDIA setups. See:
|
||||
// http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=261472
|
||||
gl->fEnable(LOCAL_GL_POINT_SPRITE);
|
||||
}
|
||||
|
||||
// Check the shader validator pref
|
||||
|
Loading…
Reference in New Issue
Block a user