|
@@ -1771,6 +1771,7 @@ void tnsConfigure2DTexture(tnsTexture *t){
|
|
|
int type=isDepth?GL_UNSIGNED_INT:GL_UNSIGNED_BYTE;
|
|
|
if(t->GLTexBitsType==GL_RGBA16UI){ format=GL_RGBA_INTEGER; type=GL_UNSIGNED_SHORT; t->IsUIntTexture=1; }
|
|
|
if(t->GLTexBitsType==GL_RGBA16F){ format=GL_RGBA; type=GL_FLOAT; }
|
|
|
+ if(t->GLTexBitsType==GL_R32UI){ format=GL_RED_INTEGER; type=GL_UNSIGNED_INT; t->IsUIntTexture=1; }
|
|
|
if(t->GLTexBitsType==GL_DEPTH_STENCIL){ format=GL_DEPTH_STENCIL; type=GL_UNSIGNED_INT_24_8; t->GLTexBitsType=GL_DEPTH24_STENCIL8; }
|
|
|
#ifndef LAGUI_ANDROID
|
|
|
if(isDepth){t->GLTexBitsType=GL_DEPTH_COMPONENT24; type=GL_UNSIGNED_INT;}
|