Skip to content

Commit ae78c8c

Browse files
committed
Remove OpenGL ES 1.0 commands from programmable renderer
1 parent 3180a7b commit ae78c8c

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

libs/openFrameworks/gl/ofGLProgrammableRenderer.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,29 +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(getGLVersionMajor() == 1) {
1207-
if(vertices){
1208-
glEnableClientState(GL_VERTEX_ARRAY);
1209-
}
1210-
if(color){
1211-
glEnableClientState(GL_COLOR_ARRAY);
1212-
}else{
1213-
glDisableClientState(GL_COLOR_ARRAY);
1214-
}
1215-
if(tex){
1216-
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
1217-
}else{
1218-
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
1219-
}
1220-
if(normals){
1221-
glEnableClientState(GL_NORMAL_ARRAY);
1222-
}else{
1223-
glDisableClientState(GL_NORMAL_ARRAY);
1224-
}
1225-
}
1226-
1227-
#endif
12281205
}
12291206

12301207
//----------------------------------------------------------

0 commit comments

Comments
 (0)