Fix #21667: smoke drawing crashes calling glTexImage3D on graphics card that do
not support it.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user