Changeset 438 for branches/thune/thread_safe/gl/shader.c
- Timestamp:
- 07/25/07 22:34:48 (16 months ago)
- Files:
-
- 1 modified
-
branches/thune/thread_safe/gl/shader.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/gl/shader.c
r399 r438 334 334 335 335 case GL_SAMPLER_1D: 336 glActiveTexture( GL_TEXTURE0 + texUnit ); 337 glEnable( GL_TEXTURE_1D ); 338 glBindTexture( GL_TEXTURE_1D, ur_texId(cval) ); 339 glUniform1i( pi->location, texUnit ); 340 ++texUnit; 341 break; 342 336 343 case GL_SAMPLER_2D: 337 case GL_SAMPLER_3D:338 344 glActiveTexture( GL_TEXTURE0 + texUnit ); 339 345 glEnable( GL_TEXTURE_2D ); … … 342 348 ++texUnit; 343 349 break; 350 351 //case GL_SAMPLER_3D: 344 352 } 345 353 ++pi;
