mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 08:40:55 +00:00
Linux compile fixes
This commit is contained in:
@@ -590,7 +590,7 @@ void GLReplay::GetMapping(WrappedOpenGL &gl, GLuint curProg, int shadIdx, Shader
|
||||
GLint dummyReadback[32];
|
||||
|
||||
#if !defined(RELEASE)
|
||||
for(int i=1; i < ARRAY_COUNT(dummyReadback); i++)
|
||||
for(size_t i=1; i < ARRAY_COUNT(dummyReadback); i++)
|
||||
dummyReadback[i] = 0x6c7b8a9d;
|
||||
#endif
|
||||
|
||||
@@ -671,7 +671,7 @@ void GLReplay::GetMapping(WrappedOpenGL &gl, GLuint curProg, int shadIdx, Shader
|
||||
}
|
||||
|
||||
#if !defined(RELEASE)
|
||||
for(int i=1; i < ARRAY_COUNT(dummyReadback); i++)
|
||||
for(size_t i=1; i < ARRAY_COUNT(dummyReadback); i++)
|
||||
if(dummyReadback[i] != 0x6c7b8a9d)
|
||||
RDCERR("Invalid uniform readback - data beyond first element modified!");
|
||||
#endif
|
||||
|
||||
@@ -51,7 +51,7 @@ void GLReplay::MakeCurrentReplayContext(GLWindowingData *ctx)
|
||||
{
|
||||
prev = ctx;
|
||||
glXMakeContextCurrentProc(ctx->dpy, ctx->wnd, ctx->wnd, ctx->ctx);
|
||||
m_pDriver->ActivateContext(ctx->wnd, ctx->ctx);
|
||||
m_pDriver->ActivateContext((void *)ctx->wnd, ctx->ctx);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user