Fixed Mac OSX Bugs
This commit is contained in:
@ -53,9 +53,8 @@ void Texture::setSize(
|
||||
#if DAWN_DEBUG_BUILD
|
||||
int32_t maxSize;
|
||||
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxSize);
|
||||
|
||||
assertTrue(width > 0 && width <= maxSize);
|
||||
assertTrue(height > 0 && height <= maxSize);
|
||||
assertTrue(width > 0 && width <= maxSize, "Texture::setSize: Width is out of bounds!");
|
||||
assertTrue(height > 0 && height <= maxSize, "Texture::setSize: Height is out of bounds!");
|
||||
#endif
|
||||
|
||||
this->width = width;
|
||||
|
Reference in New Issue
Block a user