@@ -57,7 +57,7 @@ void DevTools::setupPlatform() {
5757 m_fontTexture->initWithData (pixels, kCCTexture2DPixelFormat_RGBA8888 , width, height, CCSize (width, height));
5858 m_fontTexture->retain ();
5959
60- io.Fonts ->SetTexID (reinterpret_cast <ImTextureID>(static_cast < unsigned long long >( m_fontTexture->getName () )));
60+ io.Fonts ->SetTexID (static_cast <ImTextureID>(m_fontTexture->getName ()));
6161
6262 // fixes getMousePos to be relative to the GD view
6363 #ifndef GEODE_IS_MOBILE
@@ -219,7 +219,7 @@ void DevTools::renderDrawDataFallback(ImDrawData* draw_data) {
219219 auto * idxBuffer = list->IdxBuffer .Data ;
220220 auto * vtxBuffer = list->VtxBuffer .Data ;
221221 for (auto & cmd : list->CmdBuffer ) {
222- ccGLBindTexture2D (static_cast <GLuint>(reinterpret_cast < unsigned long long >( cmd.GetTexID () )));
222+ ccGLBindTexture2D (static_cast <GLuint>(cmd.GetTexID ()));
223223
224224 const auto rect = cmd.ClipRect ;
225225 const auto orig = toCocos (ImVec2 (rect.x , rect.y ));
@@ -306,7 +306,7 @@ void DevTools::renderDrawData(ImDrawData* draw_data) {
306306 glBufferData (GL_ELEMENT_ARRAY_BUFFER, list->IdxBuffer .Size * sizeof (ImDrawIdx), list->IdxBuffer .Data , GL_STREAM_DRAW);
307307
308308 for (auto & cmd : list->CmdBuffer ) {
309- ccGLBindTexture2D (static_cast <GLuint>(reinterpret_cast < unsigned long long >( cmd.GetTexID () )));
309+ ccGLBindTexture2D (static_cast <GLuint>(cmd.GetTexID ()));
310310
311311 const auto rect = cmd.ClipRect ;
312312 const auto orig = toCocos (ImVec2 (rect.x , rect.y ));
0 commit comments