Show
Ignore:
Timestamp:
07/25/07 22:34:48 (16 months ago)
Author:
krobillard
Message:

GL - texture! make can now make GL_TEXTURE_1D from binary!.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/gl/shader.c

    r399 r438  
    334334 
    335335                    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 
    336343                    case GL_SAMPLER_2D: 
    337                     case GL_SAMPLER_3D: 
    338344                        glActiveTexture( GL_TEXTURE0 + texUnit ); 
    339345                        glEnable( GL_TEXTURE_2D ); 
     
    342348                        ++texUnit; 
    343349                        break; 
     350 
     351                    //case GL_SAMPLER_3D: 
    344352                } 
    345353                ++pi;