mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2025-01-03 05:31:12 +00:00
Refs #358. Converted tabs to spaces and removed extra whitepace.
This commit is contained in:
parent
acac924edc
commit
f816a43f6b
@ -1615,7 +1615,7 @@ int main(int argc, char ** argv) {
|
||||
|
||||
|
||||
|
||||
bool disable_glew_experimental = false;
|
||||
bool disable_glew_experimental = false;
|
||||
|
||||
for (int i = 1; i < argc; ++i) {
|
||||
if (strstr(argv[i], ".obj")) {
|
||||
@ -1632,14 +1632,11 @@ int main(int argc, char ** argv) {
|
||||
}
|
||||
else if (!strcmp(argv[i], "-f")) {
|
||||
fullscreen = true;
|
||||
}
|
||||
|
||||
else if (strcmp(argv[i], "-x") == 0){
|
||||
//disable it at runtime for certain buggy drivers
|
||||
disable_glew_experimental = true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
else if (strcmp(argv[i], "-x") == 0){
|
||||
//disable it at runtime for certain buggy drivers
|
||||
disable_glew_experimental = true;
|
||||
}
|
||||
else {
|
||||
std::ifstream ifs(argv[1]);
|
||||
if (ifs) {
|
||||
@ -1720,8 +1717,8 @@ int main(int argc, char ** argv) {
|
||||
#if defined(OSD_USES_GLEW)
|
||||
#ifdef CORE_PROFILE
|
||||
// this is the only way to initialize glew correctly under core profile context.
|
||||
if (!disable_glew_experimental)
|
||||
glewExperimental = true;
|
||||
if (!disable_glew_experimental)
|
||||
glewExperimental = true;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user