https://bugs.freedesktop.org/show_bug.cgi?id=83149
Priority: medium Bug ID: 83149 Assignee: mesa-dev@lists.freedesktop.org Summary: Syntax error in setup_glsl_blit_framebuffer() with VS2012 Severity: critical Classification: Unclassified OS: Windows (All) Reporter: genpfa...@gmail.com Hardware: x86 (IA32) Status: NEW Version: 10.2 Component: Mesa core Product: Mesa Using the 10.2.6 release zip (ftp://ftp.freedesktop.org/pub/mesa/10.2.6/MesaLib-10.2.6.zip) with the VS2012 compiler. scons invocation: LLVM=c:/llvm /c/Python27/python /c/Python27/Scripts/scons.py build=release machine=x86 platform=windows gles=yes llvm=yes MSVC_VERSION=11.0 This line: unsigned texcoord_size = 2 + (src_rb->Depth > 1 ? 1 : 0); in setup_glsl_blit_framebuffer() results in a syntax error: src\mesa\drivers\common\meta_blit.c(331) : error C2143: syntax error : missing ';' before 'type' Moving the declaration to the top of the function fixes the error: { unsigned texcoord_size = 0; /* target = GL_TEXTURE_RECTANGLE is not supported in GLES 3.0 */ assert(_mesa_is_desktop_gl(ctx) || target == GL_TEXTURE_2D); texcoord_size = 2 + (src_rb->Depth > 1 ? 1 : 0); ... -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev