Fix #21667: smoke drawing crashes calling glTexImage3D on graphics card that do

not support it.
This commit is contained in:
2010-03-27 10:48:01 +00:00
parent 91d56f8a6d
commit 49271a2fea
2 changed files with 9 additions and 1 deletions

View File

@@ -392,6 +392,9 @@ GPUTexture *GPU_texture_create_3D(int w, int h, int depth, float *fpixels)
void *pixels = NULL;
float vfBorderColor[4] = {0.0f, 0.0f, 0.0f, 0.0f};
if(!GLEW_VERSION_1_2)
return NULL;
tex = MEM_callocN(sizeof(GPUTexture), "GPUTexture");
tex->w = w;
tex->h = h;