Browse Source

Fix unlockFocus error in release builds

rdb 10 years ago
parent
commit
10796fe33e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/cocoadisplay/cocoaGraphicsWindow.mm

+ 1 - 1
panda/src/cocoadisplay/cocoaGraphicsWindow.mm

@@ -182,7 +182,7 @@ begin_frame(FrameMode mode, Thread *current_thread) {
 
 
   // Lock the view for drawing.
   // Lock the view for drawing.
   if (!_properties.get_fullscreen()) {
   if (!_properties.get_fullscreen()) {
-    nassertr([_view lockFocusIfCanDraw], false);
+    nassertr_always([_view lockFocusIfCanDraw], false);
   }
   }
 
 
   // Make the context current.
   // Make the context current.