Changeset 933

Show
Ignore:
Timestamp:
02/25/08 09:52:43 (11 months ago)
Author:
timdewhirst
Message:

jahwidgets
- fix uninitialized variables

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jahwidgets/src/qt3/widgets/opengl_store.cpp

    r911 r933  
    8888                glewInit( ); 
    8989 
    90                 shaders_[ YUV444_TO_RGB ].init( "cg:passthrough.cg", "cg:yuv444_to_rgb.cg", "glsl:passthrough.vert", "glsl:yuv444_to_rgb.frag" ); 
     90                shaders_[ YUV444_TO_RGB ].init( "cg:passthrough.cg", "cg:yuv444_to_rgb.cg", "glsl:passthrough.vert", "glsl:yuv444_to_rgb.frag", false ); 
    9191                shaders_[ YUV444_TO_RGB_DEINTERLACE ].init( "cg:passthrough.cg",  
    9292                                                                                                        "cg:yuv444_to_rgb_deinterlace.cg",  
    9393                                                                                                        "glsl:passthrough.vert",  
    94                                                                                                         "glsl:yuv444_to_rgb_deinterlace.frag" ); 
    95                 shaders_[ CHANNEL_SELECTOR ].init( "cg:passthrough.cg", "cg:channel_selector.cg", "glsl:passthrough.vert", "glsl:channel_selector.frag" ); 
     94                                                                                                        "glsl:yuv444_to_rgb_deinterlace.frag", false ); 
     95                shaders_[ CHANNEL_SELECTOR ].init( "cg:passthrough.cg", "cg:channel_selector.cg", "glsl:passthrough.vert", "glsl:channel_selector.frag", false ); 
    9696        } 
    9797 
     
    195195                        { 
    196196                                // Determine if the image is supported by the gpu directly 
    197                                 GLint internal_format; 
    198                                 GLenum format, type; 
     197                                GLint internal_format = 0; 
     198                                GLenum format, type = GL_UNSIGNED_BYTE; 
    199199                                pl::pf_to_gl_format( image_->pf( ), internal_format, format, type ); 
    200200                                ml::image_type_ptr new_im; 
     
    394394                        // TODO: Correct for the interlaced case 
    395395                        // Determine if the image is supported by the gpu directly 
    396                         GLint internal_format; 
    397                         GLenum format, type; 
     396                        GLint internal_format = 0; 
     397                        GLenum format, type = GL_UNSIGNED_BYTE; 
    398398                        pl::pf_to_gl_format( image_->pf( ), internal_format, format, type ); 
    399399                        ml::image_type_ptr new_im;