diff --git a/Core/Util/PPGeDraw.cpp b/Core/Util/PPGeDraw.cpp index cbd3bce..e4e0f91 100644 --- a/Core/Util/PPGeDraw.cpp +++ b/Core/Util/PPGeDraw.cpp @@ -416,3 +416,20 @@ void PPGeDisableTexture() WriteCmd(GE_CMD_TEXTUREMAPENABLE, 0); } +int GetPow2(int x) +{ + int ret = 0; + int val = 1; + while(x > val) + { + ret++; + val *= 2; + } + return ret; +} diff --git a/GPU/GLES/ShaderManager.cpp b/GPU/GLES/ShaderManager.cpp index ec5b60e..e796078 100644 --- a/GPU/GLES/ShaderManager.cpp +++ b/GPU/GLES/ShaderManager.cpp @@ -24,6 +24,7 @@ #include "ShaderManager.h" #include "TransformPipeline.h" +typedef char GLchar; Shader::Shader(const char *code, uint32_t shaderType) { source_ = code; #ifdef _WIN32