瀏覽代碼

use static cast

Jeffery Myers 9 月之前
父節點
當前提交
e605b2f55d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rlImGui.cpp

+ 1 - 1
rlImGui.cpp

@@ -212,7 +212,7 @@ static void ImGuiRenderTriangles(unsigned int count, int indexStart, const ImVec
     if (count < 3)
         return;
 
-    unsigned int textureId = unsigned int (texturePtr);
+    unsigned int textureId = static_cast<unsigned int>(texturePtr);
 
     rlBegin(RL_TRIANGLES);
     rlSetTexture(textureId);