liquidzym / openFrameworks

OpenFrameworks is a cross platform open source toolkit for creative coding in C++.
http://openframeworks.cc
Other
23 stars 7 forks source link

ofVbo.cpp - Line 330: error - No user-defined conversion operator #5

Closed ghost closed 9 years ago

ghost commented 9 years ago

One last issue. When building latest getting error on line 330 of ofVbo.cpp ofVbo.cpp 1>......\openFrameworks\gl\ofVbo.cpp(330): error C2440: '=' : cannot convert from 'ofPtr' to 'bool' 1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called

supportVAOs = ofGetGLProgrammableRenderer();// || glewIsSupported("GL_ARB_vertex_array_object")// <- this should work but has false positives on some cards like emulation in vm's

Based on the comment and how the code is written, is this just a object check or are you supposed to save this somewhere. Uncommenting the "// || glewIsSupported" part of the line will compile, but not sure if that is the correct thing to do here.

liquidzym commented 9 years ago

yes,that's correct ,the bug coming from of,just uncommenting it,should be fine