Don't use "p" and "p++" in the same statement in wxOSX OpenGL code
This results in unspecified behaviour. See #16909.
This commit is contained in:
parent
c4907129f4
commit
7cc91cc755
@ -90,7 +90,10 @@ WXGLPixelFormat WXGLChoosePixelFormat(const int *GLAttrs,
|
||||
{
|
||||
n1--; // skip the ending '0'
|
||||
while ( p < n1 )
|
||||
data[p++] = (NSOpenGLPixelFormatAttribute) GLAttrs[p];
|
||||
{
|
||||
data[p] = (NSOpenGLPixelFormatAttribute) GLAttrs[p];
|
||||
p++;
|
||||
}
|
||||
}
|
||||
|
||||
if ( ctxAttrs && n2 > 1 )
|
||||
|
Loading…
Reference in New Issue
Block a user