Cleanup: suppress assert in recent GPU refactor

This commit is contained in:
2018-06-22 08:10:59 +02:00
parent 2e80279a75
commit 61bed8768d

View File

@@ -888,7 +888,7 @@ GPUTexture *GPU_texture_create_from_vertbuf(Gwn_VertBuf *vert)
void GPU_texture_update_sub(GPUTexture *tex, const void *pixels, int offset_x, int offset_y, int offset_z, int width, int height, int depth)
{
BLI_assert(tex->format > -1);
BLI_assert((int)tex->format > -1);
BLI_assert(tex->components > -1);
GLenum format, data_format;