View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0004510 | Spring engine | Linux | public | 2014-08-19 20:57 | 2014-08-20 15:40 | ||||
Reporter | Svenstaro | ||||||||
Assigned To | abma | ||||||||
Priority | normal | Severity | block | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0004510: fails to build on glew 1.11 | ||||||||
Description | glew 1.11 adjusted the OpenGLDebugMessageCallback signature slightly. I attached a patch to fix that. I do not know how that will work out on glew <1.11 so that should get a test compile before merging the patch. | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|
jK (developer) 2014-08-20 09:11 |
check the opengl docs, the definition is correct as is |
cleanrock (reporter) 2014-08-20 10:06 |
glew changed this in https://github.com/nigels-com/glew/commit/1aff81c823587bd3dd2384401d3aaf4ec40259dc I guess they just follow what https://www.opengl.org/registry/specs/ARB/debug_output.txt say: The callback function that applications can define, and is accepted by DebugMessageCallbackARB, is defined as: typedef void (APIENTRY *DEBUGPROCARB)(enum source, enum type, uint id, enum severity, sizei length, const char* message, const void* userParam); Note that this function pointer is defined as having the same calling convention as the GL functions. |
abma (administrator) 2014-08-20 15:40 |
ideas for a cleaner way to workarround the changed signature? is there a way to check which version of glew is used? if so, sth. like #idfdef GLEW_VERSION >= 1.11 signature1()... #else signature2()... #endif would work... |
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2014-08-19 20:57 | Svenstaro | New Issue | |
2014-08-19 20:57 | Svenstaro | File Added: glew1.11.patch | |
2014-08-20 09:11 | jK | Note Added: 0013536 | |
2014-08-20 10:06 | cleanrock | Note Added: 0013537 | |
2014-08-20 15:38 | abma | Changeset attached | => spring develop a8d614dd |
2014-08-20 15:38 | abma | Assigned To | => abma |
2014-08-20 15:38 | abma | Status | new => resolved |
2014-08-20 15:38 | abma | Resolution | open => fixed |
2014-08-20 15:40 | abma | Note Added: 0013538 |