mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Fix Win32 macro conflict
This commit is contained in:
parent
23bf1b530b
commit
048966bb44
@ -227,7 +227,7 @@ int main(int argc, char** argv)
|
||||
MAJOR, MINOR, PROFILE, ROBUSTNESS, VERSION,
|
||||
REDBITS, GREENBITS, BLUEBITS, ALPHABITS, DEPTHBITS, STENCILBITS,
|
||||
ACCUMREDBITS, ACCUMGREENBITS, ACCUMBLUEBITS, ACCUMALPHABITS,
|
||||
AUXBUFFERS, SAMPLES, STEREO, SRGB, SINGLEBUFFER, NOERROR };
|
||||
AUXBUFFERS, SAMPLES, STEREO, SRGB, SINGLEBUFFER, NOERROR_SRSLY };
|
||||
const struct option options[] =
|
||||
{
|
||||
{ "behavior", 1, NULL, BEHAVIOR },
|
||||
@ -256,7 +256,7 @@ int main(int argc, char** argv)
|
||||
{ "stereo", 0, NULL, STEREO },
|
||||
{ "srgb", 0, NULL, SRGB },
|
||||
{ "singlebuffer", 0, NULL, SINGLEBUFFER },
|
||||
{ "no-error", 0, NULL, NOERROR },
|
||||
{ "no-error", 0, NULL, NOERROR_SRSLY },
|
||||
{ NULL, 0, NULL, 0 }
|
||||
};
|
||||
|
||||
@ -449,7 +449,7 @@ int main(int argc, char** argv)
|
||||
case SINGLEBUFFER:
|
||||
glfwWindowHint(GLFW_DOUBLEBUFFER, GLFW_FALSE);
|
||||
break;
|
||||
case NOERROR:
|
||||
case NOERROR_SRSLY:
|
||||
glfwWindowHint(GLFW_CONTEXT_NO_ERROR, GLFW_TRUE);
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user