Fix Android build cast error

Remove gl command for texture 2d
This commit is contained in:
Xele02 committed 2012-12-16 13:07:11 +01:00
1 parent bd1a9c2b1a
commit 71839414ca
2 files changed
+1 -6

No files matched your search

+1 -1
View File
@@ -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;
}
-5
View File
@@ -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;