Added reasons to assertions
This commit is contained in:
1 parent
1b0218c9f3
commit
a5b36fb24a
79 files changed
+359
-291
No files matched your search
@@ -46,8 +46,8 @@
|
||||
<!-- Code to handle scene resizing and auto adjusting the scene camera -->
|
||||
<code type="init">
|
||||
useEvent([&]{
|
||||
assertNotNull(camTexture);
|
||||
assertNotNull(image);
|
||||
assertNotNull(camTexture, "Camera texture cannot be null.");
|
||||
assertNotNull(image, "Image cannot be null.");
|
||||
camTexture->renderTarget.setSize(image->getWidth(), image->getHeight());
|
||||
}, image->eventAlignmentUpdated);
|
||||
</code>
|
||||
|
||||
Reference in new issue
Block a user