Forráskód Böngészése

LibGL: Clean up reading floats and doubles from pointers

No functional changes, just removal of superfluous braces.
Jelle Raaijmakers 3 éve
szülő
commit
c91e86e020
1 módosított fájl, 2 hozzáadás és 4 törlés
  1. 2 4
      Userland/Libraries/LibGL/SoftwareGLContext.cpp

+ 2 - 4
Userland/Libraries/LibGL/SoftwareGLContext.cpp

@@ -2467,18 +2467,16 @@ void SoftwareGLContext::read_from_vertex_attribute_pointer(VertexAttribPointer c
         if (stride == 0)
             stride = sizeof(GLfloat) * attrib.size;
 
-        for (int i = 0; i < attrib.size; i++) {
+        for (int i = 0; i < attrib.size; i++)
             elements[i] = *(reinterpret_cast<const GLfloat*>(byte_ptr + stride * index) + i);
-        }
         break;
     }
     case GL_DOUBLE: {
         if (stride == 0)
             stride = sizeof(GLdouble) * attrib.size;
 
-        for (int i = 0; i < attrib.size; i++) {
+        for (int i = 0; i < attrib.size; i++)
             elements[i] = static_cast<float>(*(reinterpret_cast<const GLdouble*>(byte_ptr + stride * index) + i));
-        }
         break;
     }
     }