matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
492 stars 72 forks source link

#103: move operations seem to sometimes trigger deletion of the underlying object #104

Closed jherico closed 9 years ago

jherico commented 9 years ago

per #103 the new _invalid_name() method returns the ones-complement of zero, which for a GLuint is not a negative number. Hence the comparison always succeeds. I'm not clear why _name_ptr() is still returning the value for the object prior to when it was set to _invalid_name() though.

jherico commented 9 years ago

Yeah, that didn't work