Changeset 504 for trunk/thune/gl/shader.c
- Timestamp:
- 02/02/08 23:13:47 (10 months ago)
- Files:
-
- 1 modified
-
trunk/thune/gl/shader.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/gl/shader.c
r458 r504 183 183 { 184 184 ur_internWord( cell, pi->name ); 185 185 #if 0 186 printf( "KR Shader Param %d is type %d\n", 187 (int) (pi - param), pi->type ); 188 #endif 186 189 ++cval; 187 190 switch( pi->type ) … … 220 223 case GL_SAMPLER_2D: 221 224 case GL_SAMPLER_3D: 225 case GL_SAMPLER_CUBE: 226 case GL_SAMPLER_1D_SHADOW: 227 case GL_SAMPLER_2D_SHADOW: 222 228 ur_initType( cval, UT_NONE ); 223 229 ur_texId(cval) = 0; // Expecting texture!. … … 235 241 GL_FLOAT_MAT3: 236 242 GL_FLOAT_MAT4: 237 GL_SAMPLER_CUBE:238 243 GL_SAMPLER_2D_RECT: 239 GL_SAMPLER_1D_SHADOW:240 GL_SAMPLER_2D_SHADOW:241 244 GL_SAMPLER_2D_RECT_SHADOW: 242 245 */ … … 342 345 343 346 case GL_SAMPLER_2D: 347 case GL_SAMPLER_2D_SHADOW: 344 348 glActiveTexture( GL_TEXTURE0 + texUnit ); 345 349 glEnable( GL_TEXTURE_2D );
