Zhongshi 6 years ago
parent
commit
9294ba04c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      include/igl/opengl/glfw/Viewer.cpp

+ 2 - 2
include/igl/opengl/glfw/Viewer.cpp

@@ -159,12 +159,12 @@ namespace glfw
     else
     else
     {
     {
       // Set default windows width
       // Set default windows width
-      if (windowWidth <= 0 & core_list.size() == 1 && core().viewport[2] > 0)
+      if (windowWidth <= 0 && core_list.size() == 1 && core().viewport[2] > 0)
         windowWidth = core().viewport[2];
         windowWidth = core().viewport[2];
       else if (windowWidth <= 0)
       else if (windowWidth <= 0)
         windowWidth = 1280;
         windowWidth = 1280;
       // Set default windows height
       // Set default windows height
-      if (windowHeight <= 0 & core_list.size() == 1 && core().viewport[3] > 0)
+      if (windowHeight <= 0 && core_list.size() == 1 && core().viewport[3] > 0)
         windowHeight = core().viewport[3];
         windowHeight = core().viewport[3];
       else if (windowHeight <= 0)
       else if (windowHeight <= 0)
         windowHeight = 800;
         windowHeight = 800;