소스 검색

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

Lasse Öörni 9 년 전
부모
커밋
53302819fa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }