diff --git a/desmume/src/OGLRender.cpp b/desmume/src/OGLRender.cpp index 71542753a..87d6d173c 100644 --- a/desmume/src/OGLRender.cpp +++ b/desmume/src/OGLRender.cpp @@ -562,7 +562,7 @@ static void setTexture(unsigned int format, unsigned int texpal) { currTexture->deleteCallback = texDeleteCallback; if(freeTextureIds.empty()) expandFreeTextures(); - currTexture->texid = (void*)freeTextureIds.front(); + currTexture->texid = (u32)freeTextureIds.front(); freeTextureIds.pop(); glBindTexture(GL_TEXTURE_2D,(GLuint)currTexture->texid); diff --git a/desmume/src/texcache.h b/desmume/src/texcache.h index 8f1fe6b74..f55933be1 100644 --- a/desmume/src/texcache.h +++ b/desmume/src/texcache.h @@ -44,7 +44,7 @@ public: u32 sizeX, sizeY; float invSizeX, invSizeY; - void* texid; //used by ogl renderer for the texid + u32 texid; //used by ogl renderer for the texid void (*deleteCallback)(ADPCMCacheItem*); TexCache_TexFormat cacheFormat;