Minor fix to GL texture cleanup

Don't clear any data if it's a dummy texture.
This commit is contained in:
jp9000
2014-03-29 17:23:31 -07:00
parent 0a86e8fb3f
commit b2885480fa

View File

@@ -132,7 +132,7 @@ void texture_destroy(texture_t tex)
if (tex->cur_sampler)
samplerstate_destroy(tex->cur_sampler);
if (tex->is_dynamic && tex2d->unpack_buffer)
if (!tex->is_dummy && tex->is_dynamic && tex2d->unpack_buffer)
gl_delete_buffers(1, &tex2d->unpack_buffer);
if (tex->texture)