Changeset 933
- Timestamp:
- 02/25/08 09:52:43 (11 months ago)
- Files:
-
- 1 modified
-
trunk/jahwidgets/src/qt3/widgets/opengl_store.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jahwidgets/src/qt3/widgets/opengl_store.cpp
r911 r933 88 88 glewInit( ); 89 89 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 ); 91 91 shaders_[ YUV444_TO_RGB_DEINTERLACE ].init( "cg:passthrough.cg", 92 92 "cg:yuv444_to_rgb_deinterlace.cg", 93 93 "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 ); 96 96 } 97 97 … … 195 195 { 196 196 // 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; 199 199 pl::pf_to_gl_format( image_->pf( ), internal_format, format, type ); 200 200 ml::image_type_ptr new_im; … … 394 394 // TODO: Correct for the interlaced case 395 395 // 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; 398 398 pl::pf_to_gl_format( image_->pf( ), internal_format, format, type ); 399 399 ml::image_type_ptr new_im;
