Browse Source

Copied pointer cast fixes from the OpenGL code.

Lasse Öörni 12 years ago
parent
commit
3ff3be016b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Engine/Graphics/Direct3D9/D3D9Graphics.cpp

+ 2 - 2
Engine/Graphics/Direct3D9/D3D9Graphics.cpp

@@ -1170,7 +1170,7 @@ void Graphics::RegisterShaderParameter(StringHash param, const ShaderParameter&
 
 bool Graphics::NeedParameterUpdate(ShaderParameterGroup group, const void* source)
 {
-    if ((unsigned)shaderParameterSources_[group] == M_MAX_UNSIGNED || shaderParameterSources_[group] != source)
+    if ((unsigned)(size_t)shaderParameterSources_[group] == M_MAX_UNSIGNED || shaderParameterSources_[group] != source)
     {
         shaderParameterSources_[group] = source;
         return true;
@@ -1945,7 +1945,7 @@ void Graphics::FreeScratchBuffer(void* buffer)
         }
     }
 
-    LOGWARNING("Reserved scratch buffer " + ToStringHex((unsigned)buffer) + " not found");
+    LOGWARNING("Reserved scratch buffer " + ToStringHex((unsigned)(size_t)buffer) + " not found");
 }
 
 void Graphics::CleanupScratchBuffers()