Explorar o código

Improve error message in OcclusionBuffer when width is not a power of two.

Lasse Öörni %!s(int64=9) %!d(string=hai) anos
pai
achega
53302819fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/Urho3D/Graphics/OcclusionBuffer.cpp

+ 1 - 1
Source/Urho3D/Graphics/OcclusionBuffer.cpp

@@ -79,7 +79,7 @@ bool OcclusionBuffer::SetSize(int width, int height, bool threaded)
 
 
     if (!IsPowerOfTwo((unsigned)width))
     if (!IsPowerOfTwo((unsigned)width))
     {
     {
-        URHO3D_LOGERROR("Width is not a power of two");
+        URHO3D_LOGERRORF("Requested occlusion buffer width %d is not a power of two", width);
         return false;
         return false;
     }
     }