cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
538 stars 59 forks source link

qtexample throws error on failed assertion #378

Closed anne-gropler closed 5 years ago

anne-gropler commented 5 years ago

Set up globjects from master, use glbinding from master, then start the qtexample application.

Execution stops at glbinding::Function.inl::246: assert(AbstractFunction::maxPos() >= pos); because pos is 0 and maxPos returns -1.

Stack:

glbindingd.dll!glbinding::Function<void,enum gl::ClearBufferMask>::state(int pos) line 246 glbindingd.dll!glbinding::Function<void,enum gl::ClearBufferMask>::state() line 241 glbindingd.dll!glbinding::AbstractFunction::address() line 53 glbindingd.dll!glbinding::Function<void,enum gl::ClearBufferMask>::call(gl::ClearBufferMask & ) line 149 glbindingd.dll!glbinding::Function<void,enum gl::ClearBufferMask>::operator()(gl::ClearBufferMask & ) line 144 glbindingd.dll!gl::glClear(gl::ClearBufferMask mask) line 62 qtexampled.exe!Window::paintGL() line116 qtexampled.exe!WindowQt::paint() line120 qtexampled.exe!WindowQt::exposeEvent(QExposeEvent * __formal) line 79 ...

Is this a bug? Or a configuration error with glbinding? If the latter, how to I configure it correctly?

I am working on Windows 10, MVS 2017 (Version 15.8.6), setup with CMake 3.12.3 and Qt 5.11.2.

anne-gropler commented 5 years ago

Checkout master, use glbinding from master (timestamp for both: 25.10.2018 14:30). Start qtexample of globjects, compiler error C2665 on line https://github.com/cginternals/globjects/blob/1a0abe5f866202369860f9e7b2d09c1c7d6e8638/source/examples/qtexample/main.cpp#L51 Same for qtexample-ex.

Using Windows 10 and Visual Studio 15 2017 x64. Happens since glbinding::ProcAddress.h was changed in this commit. @Tobias1595

scheibel commented 5 years ago

This commit should at least fix the compilation error.

anne-gropler commented 5 years ago

Both problems are fixed, thanks a lot! :)