diff options
author | Brian Paul <[email protected]> | 2015-01-15 15:30:40 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-01-15 16:15:34 -0700 |
commit | 337eca4ac8fcbc6fe2983e7b60653002c14d5d8d (patch) | |
tree | bcd7be55f0e6612cdc9a7e489840d37df88344ff /src/mesa | |
parent | e407fb1af4c0ca20fd839e8c3cb63cf82789b8ca (diff) |
mesa: move GET_CURRENT_CONTEXT() to top of _mesa_init_renderbuffer()
To fix MSVC build.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/renderbuffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index cc97ab22bed..98f3c13b557 100644 --- a/src/mesa/main/renderbuffer.c +++ b/src/mesa/main/renderbuffer.c @@ -38,6 +38,8 @@ void _mesa_init_renderbuffer(struct gl_renderbuffer *rb, GLuint name) { + GET_CURRENT_CONTEXT(ctx); + mtx_init(&rb->Mutex, mtx_plain); rb->ClassID = 0; @@ -64,7 +66,6 @@ _mesa_init_renderbuffer(struct gl_renderbuffer *rb, GLuint name) * specs. If the context is not current, we cannot determine the * API, so default to GL_RGBA. */ - GET_CURRENT_CONTEXT(ctx); if (ctx && _mesa_is_gles3(ctx)) { rb->InternalFormat = GL_RGBA4; } else { |