mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
mesa: move GET_CURRENT_CONTEXT() to top of _mesa_init_renderbuffer()
To fix MSVC build. Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
e407fb1af4
commit
337eca4ac8
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue