Fixed Mac OSX Bugs

This commit is contained in:
2023-07-23 15:02:44 -07:00
parent a94b16e23f
commit a062b5a376
5 changed files with 14 additions and 14 deletions

View File

@ -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;