Added reasons to assertions
This commit is contained in:
@ -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