<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Syntax error in setup_glsl_blit_framebuffer() with VS2012"
href="https://bugs.freedesktop.org/show_bug.cgi?id=83149">83149</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Syntax error in setup_glsl_blit_framebuffer() with VS2012
</td>
</tr>
<tr>
<th>Severity</th>
<td>critical
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>genpfault@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86 (IA32)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>10.2
</td>
</tr>
<tr>
<th>Component</th>
<td>Mesa core
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>Using the 10.2.6 release zip
(<a href="ftp://ftp.freedesktop.org/pub/mesa/10.2.6/MesaLib-10.2.6.zip">ftp://ftp.freedesktop.org/pub/mesa/10.2.6/MesaLib-10.2.6.zip</a>) 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);
...</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>