GraphicsUtil.cpp (pymol-open-source-2.2.0) | : | GraphicsUtil.cpp (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 70 | skipping to change at line 70 | |||
const GLchar *msg, | const GLchar *msg, | |||
const void *) | const void *) | |||
{ | { | |||
#ifdef GL_DEBUG_TYPE_ERROR | #ifdef GL_DEBUG_TYPE_ERROR | |||
if (type == GL_DEBUG_TYPE_ERROR) { | if (type == GL_DEBUG_TYPE_ERROR) { | |||
printf("glDebug: %s\n", msg); | printf("glDebug: %s\n", msg); | |||
print_trace(); | print_trace(); | |||
} | } | |||
#endif | #endif | |||
} | } | |||
void GLAPIENTRY gl_debug_proc( | ||||
GLenum source, | ||||
GLenum type, | ||||
GLuint id, | ||||
GLenum severity, | ||||
GLsizei length, | ||||
const GLchar *msg, | ||||
void* userParams) | ||||
{ | ||||
gl_debug_proc(source, type, id, severity, length, msg, | ||||
const_cast<const void*>(userParams)); | ||||
} | ||||
// Returns the size in bytes of the opengl type | // Returns the size in bytes of the opengl type | |||
size_t gl_sizeof(GLenum type){ | size_t gl_sizeof(GLenum type){ | |||
size_t size = 1; | size_t size = 1; | |||
switch (type) { | switch (type) { | |||
case GL_UNSIGNED_BYTE: | case GL_UNSIGNED_BYTE: | |||
case GL_BYTE: | case GL_BYTE: | |||
size = 1; | size = 1; | |||
break; | break; | |||
case GL_UNSIGNED_SHORT: | case GL_UNSIGNED_SHORT: | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 12 lines changed or added |