瀏覽代碼

show assert if failed

dmuratshin 9 年之前
父節點
當前提交
ba4ea3dea0
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/oal/SoundSystem_oal.cpp

+ 4 - 2
src/oal/SoundSystem_oal.cpp

@@ -108,7 +108,8 @@ namespace oxygine
 #endif
         if (!_device)
         {
-            log::messageln("can't create alc device");
+            OX_ASSERT(0);
+            log::error("can't create alc device");
             return;
         }
 
@@ -116,7 +117,8 @@ namespace oxygine
 
         if (!_context)
         {
-            log::messageln("can't create alc context");
+            OX_ASSERT(0);
+            log::error("can't create alc context");
             return;
         }