cogl-context: Don't enable point sprites on GLES2
On GLES2 there's no builtin mechanism to replace texture coordinates with point sprite coordinates so calling glEnable(GL_POINT_SPRITE) isn't valid. Instead the point sprite coords are implemented by using a special builtin varying variable in GLSL.
This commit is contained in:
parent
03dbf67ca4
commit
ac81f3b936
@ -292,9 +292,12 @@ cogl_create_context (void)
|
||||
layer. Therefore it seems like it should be ok to just leave it
|
||||
enabled all the time instead of having to have a set property on
|
||||
each pipeline to track whether any layers have point sprite
|
||||
coords enabled */
|
||||
coords enabled. We don't need to do this for GLES2 because point
|
||||
sprites are handled using a builtin varying in the shader. */
|
||||
#ifndef HAVE_COGL_GLES2
|
||||
if (cogl_features_available (COGL_FEATURE_POINT_SPRITE))
|
||||
GE (glEnable (GL_POINT_SPRITE));
|
||||
#endif
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user