@@ -124,9 +124,9 @@ struct ShaderProgram : public WithOpenGLBindings
124124
125125 ShaderProgram () :
126126 program (0 ),
127- is_mesa_checked (false ),
128127 vertex_shader (0 ),
129- fragment_shader (0 )
128+ fragment_shader (0 ),
129+ is_mesa_checked (false )
130130 {
131131 }
132132
@@ -296,7 +296,7 @@ struct Texture : public WithOpenGLBindings
296296 unsigned char *data;
297297 size_t size;
298298
299- Texture () : texture( 0 ), data (0 ), size (0 ), bytes_per_pixel(FormatT::BytesPerPixel ), height (0 ), width (0 )
299+ Texture () : bytes_per_pixel(FormatT::BytesPerPixel ), height (0 ), width (0 ), texture( 0 ), data (0 ), size (0 )
300300 {
301301 }
302302
@@ -314,7 +314,7 @@ struct Texture : public WithOpenGLBindings
314314
315315 GLint max_size;
316316 glGetIntegerv (GL_MAX_RECTANGLE_TEXTURE_SIZE, &max_size);
317- if (new_width > max_size || new_height > max_size)
317+ if (new_width > ( size_t ) max_size || new_height > ( size_t ) max_size)
318318 {
319319 LOG_ERROR << " GL_MAX_RECTANGLE_TEXTURE_SIZE is too small: " << max_size;
320320 exit (-1 );
@@ -363,13 +363,13 @@ struct Texture : public WithOpenGLBindings
363363 {
364364 typedef unsigned char type;
365365
366- int linestep = width * bytes_per_pixel / sizeof (type);
366+ size_t linestep = width * bytes_per_pixel / sizeof (type);
367367
368368 type *first_line = reinterpret_cast <type *>(data), *last_line = reinterpret_cast <type *>(data) + (height - 1 ) * linestep;
369369
370- for (int y = 0 ; y < height / 2 ; ++y)
370+ for (size_t y = 0 ; y < height / 2 ; ++y)
371371 {
372- for (int x = 0 ; x < linestep; ++x, ++first_line, ++last_line)
372+ for (size_t x = 0 ; x < linestep; ++x, ++first_line, ++last_line)
373373 {
374374 std::swap (*first_line, *last_line);
375375 }
@@ -431,8 +431,8 @@ class OpenGLDepthPacketProcessorImpl : public WithOpenGLBindings, public WithPer
431431
432432 OpenGLDepthPacketProcessorImpl (GLFWwindow *new_opengl_context_ptr, bool debug) :
433433 opengl_context_ptr (new_opengl_context_ptr),
434- square_vao (0 ),
435434 square_vbo (0 ),
435+ square_vao (0 ),
436436 stage1_framebuffer (0 ),
437437 filter1_framebuffer (0 ),
438438 stage2_framebuffer (0 ),
0 commit comments