Skip to content

Commit 08cb511

Browse files
committed
Merge branch 'Fix/OpenGLES/Invalid'
2 parents cbc616a + ae78c8c commit 08cb511

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

libs/openFrameworks/gl/ofGLProgrammableRenderer.cpp

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,27 +1202,6 @@ void ofGLProgrammableRenderer::setAttributes(bool vertices, bool color, bool tex
12021202
if(wasColorsEnabled!=color){
12031203
if(currentShader) currentShader->setUniform1f(USE_COLORS_UNIFORM,color);
12041204
}
1205-
#if defined(TARGET_OPENGLES) && !defined(TARGET_EMSCRIPTEN)
1206-
if(vertices){
1207-
glEnableClientState(GL_VERTEX_ARRAY);
1208-
}
1209-
if(color){
1210-
glEnableClientState(GL_COLOR_ARRAY);
1211-
}else{
1212-
glDisableClientState(GL_COLOR_ARRAY);
1213-
}
1214-
if(tex){
1215-
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
1216-
}else{
1217-
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
1218-
}
1219-
if(normals){
1220-
glEnableClientState(GL_NORMAL_ARRAY);
1221-
}else{
1222-
glDisableClientState(GL_NORMAL_ARRAY);
1223-
}
1224-
1225-
#endif
12261205
}
12271206

12281207
//----------------------------------------------------------

0 commit comments

Comments
 (0)