Fixed Mac OSX Bugs

This commit is contained in:
YourWishes committed 2023-07-23 15:02:44 -07:00
1 parent 7ed019b2c4
commit 2c66a2fd82
5 files changed
+14 -14

No files matched your search

+2 -3
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;