mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Fix compile errors in demos project in linux
This commit is contained in:
@@ -323,7 +323,7 @@ void main()
|
||||
glBufferSubData(GL_DRAW_INDIRECT_BUFFER, sizeof(cmd), sizeof(cmd), &cmd);
|
||||
glBufferSubData(GL_PARAMETER_BUFFER, 0, sizeof(count), &count);
|
||||
|
||||
glMultiDrawElementsIndirectCount(GL_TRIANGLES, GL_UNSIGNED_INT, NULL, NULL, 4,
|
||||
glMultiDrawElementsIndirectCount(GL_TRIANGLES, GL_UNSIGNED_INT, NULL, (GLintptr)0, 4,
|
||||
sizeof(DrawElementsIndirectCommand));
|
||||
|
||||
glBindFramebuffer(GL_READ_FRAMEBUFFER, fbo);
|
||||
|
||||
@@ -230,7 +230,7 @@ void OpenGLGraphicsTest::ActivateContext(GraphicsWindow *win, void *ctx)
|
||||
|
||||
if(ctx == NULL)
|
||||
{
|
||||
glXMakeContextCurrent(x11win->xlib.display, NULL, NULL, NULL);
|
||||
glXMakeContextCurrent(x11win->xlib.display, (GLXDrawable)NULL, (GLXDrawable)NULL, NULL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user