Skip to content

Commit

Permalink
ofVbo: don't use VAOs unless GL3+, Closes openframeworks#2580
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Mar 28, 2014
1 parent 7b1cf89 commit ce6f94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/gl/ofVbo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ void ofVbo::setVertexData(const float * vert0x, int numCoords, int total, int us
}
#else
if(!vaoChecked){
supportVAOs = ofGetGLProgrammableRenderer() || glewIsSupported("GL_ARB_vertex_array_object");
supportVAOs = ofGetGLProgrammableRenderer();// || glewIsSupported("GL_ARB_vertex_array_object"); <- this should work but has false positives on some cards like emulation in vm's
vaoChecked = true;
}
#endif
Expand Down

0 comments on commit ce6f94b

Please sign in to comment.