<div dir="auto"><div>28 mar 2017 06:35 "Timothy Arceri" <<a href="mailto:tarceri@itsqueeze.com">tarceri@itsqueeze.com</a>> napisał(a):<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
src/mesa/main/getstring.c | 12 ++++++++++++<br>
1 file changed, 12 insertions(+)<br>
<br>
diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c<br>
index 6e90511..50140cf 100644<br>
--- a/src/mesa/main/getstring.c<br>
+++ b/src/mesa/main/getstring.c<br>
@@ -297,17 +297,29 @@ invalid_pname:<br>
*<br>
* Returns __struct gl_contextRec::ErrorValue.<br>
*/<br>
GLenum GLAPIENTRY<br>
_mesa_GetError( void )<br>
{<br>
GET_CURRENT_CONTEXT(ctx);<br>
GLenum e = ctx->ErrorValue;<br>
ASSERT_OUTSIDE_BEGIN_END_WITH_<wbr>RETVAL(ctx, 0);<br>
<br>
+ /* From Issue (3) of the KHR_no_error spec:<br>
+ *<br>
+ * "Should glGetError() always return NO_ERROR or have undefined<br>
+ * results?<br>
+ *<br>
+ * RESOLVED: It should for all errors except OUT_OF_MEMORY."<br>
+ */<br>
+ if (ctx->Const.ContextFlags == GL_CONTEXT_FLAG_NO_ERROR_BIT_<wbr>KHR &&<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Shouldn't this be checked using & instead of ==?</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Gustaw</div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div></div>