Browse Source

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

Lasse Öörni 9 years ago
parent
commit
53302819fa
1 changed files with 1 additions and 1 deletions
  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))
     {
-        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;
     }