Index: /trunk/src/VBox/GuestHost/OpenGL/util/error.c
===================================================================
--- /trunk/src/VBox/GuestHost/OpenGL/util/error.c	(revision 55623)
+++ /trunk/src/VBox/GuestHost/OpenGL/util/error.c	(revision 55624)
@@ -97,11 +97,15 @@
     va_end(va);
 
-#ifdef IN_GUEST
-    /* Give things a chance to close down. */
+#ifdef DEBUG
+    /* Let's interrupt App execution only on debug builds and return
+     * bad status to upper level on release ones. */
+# ifdef IN_GUEST
+    /* Trigger debugger's breakpoint handler. */
     ASMBreakpoint();
-#else
+# else
     /* Dump core or activate the debugger in debug builds. */
     AssertFailed();
-#endif
+# endif
+#endif /* DEBUG */
 }
 
