diff --git a/Common/FileUtil.cpp b/Common/FileUtil.cpp index 8027e56261..ee1d71dd26 100644 --- a/Common/FileUtil.cpp +++ b/Common/FileUtil.cpp @@ -375,7 +375,7 @@ tm GetModifTime(const std::string &filename) { DEBUG_LOG(COMMON, "GetCreateTime: %s: %lld", filename.c_str(), (long long)buf.st_mtime); - localtime_r(&buf.st_mtime,&return_time); + localtime_r((time_t*)&buf.st_mtime,&return_time); return return_time; } diff --git a/GPU/GLES/TransformPipeline.cpp b/GPU/GLES/TransformPipeline.cpp index 6bf47ce136..31071a23b6 100644 --- a/GPU/GLES/TransformPipeline.cpp +++ b/GPU/GLES/TransformPipeline.cpp @@ -215,14 +215,9 @@ void GLES_GPU::TransformAndDrawPrim(void *verts, void *inds, int prim, int verte { if ((gstate.textureMapEnable & 1) && !gstate.isModeClear()) { - glEnable(GL_TEXTURE_2D); PSPSetTexture(); useTexCoord = true; } - else - { - glDisable(GL_TEXTURE_2D); - } } gpuStats.numDrawCalls++; gpuStats.numVertsTransformed += vertexCount;