mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mesa: Move declaration to top of block.
To fix MSVC build. Trivial.
(cherry picked from commit c98b704128)
This commit is contained in:
parent
65324b89b8
commit
7ffc8556ca
1 changed files with 3 additions and 1 deletions
|
|
@ -325,10 +325,12 @@ setup_glsl_blit_framebuffer(struct gl_context *ctx,
|
|||
struct gl_renderbuffer *src_rb,
|
||||
GLenum target)
|
||||
{
|
||||
unsigned texcoord_size;
|
||||
|
||||
/* target = GL_TEXTURE_RECTANGLE is not supported in GLES 3.0 */
|
||||
assert(_mesa_is_desktop_gl(ctx) || target == GL_TEXTURE_2D);
|
||||
|
||||
unsigned texcoord_size = 2 + (src_rb->Depth > 1 ? 1 : 0);
|
||||
texcoord_size = 2 + (src_rb->Depth > 1 ? 1 : 0);
|
||||
|
||||
_mesa_meta_setup_vertex_objects(&blit->VAO, &blit->VBO, true,
|
||||
2, texcoord_size, 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue