diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Globals.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Globals.cpp index 639ad284c0..936f758b20 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Globals.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Globals.cpp @@ -89,7 +89,7 @@ void __Log(const char *fmt, ...) void __Log(int type, const char *fmt, ...) { - int len = strlen(fmt); + int len = (int)strlen(fmt); if (!len) return; char* Msg = (char*)alloca(len + 512); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index c7e35891cb..7d91021790 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -199,7 +199,7 @@ bool Renderer::Init() const char *ptoken = (const char*)glGetString(GL_EXTENSIONS); if (!ptoken) { - PanicAlert("Failed to get OpenGL extension string. Do you have OpenGL drivers installed?"); + PanicAlert("Failed to get OpenGL extension string.\nDo you have the latest video drivers installed?\nIs your video card OpenGL 2.x compatible?"); return false; } INFO_LOG(VIDEO, "Supported OpenGL Extensions:\n"); diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp index 0d05d05100..f0cb5c9a12 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureMngr.cpp @@ -697,10 +697,10 @@ void TextureMngr::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, bool GL_REPORT_ERRORD(); glBegin(GL_QUADS); - glTexCoord2f(flipped_rect.left, flipped_rect.bottom); glVertex2f(-1, 1); - glTexCoord2f(flipped_rect.left, flipped_rect.top ); glVertex2f(-1, -1); - glTexCoord2f(flipped_rect.right, flipped_rect.top ); glVertex2f( 1, -1); - glTexCoord2f(flipped_rect.right, flipped_rect.bottom); glVertex2f( 1, 1); + glTexCoord2f((GLfloat)flipped_rect.left, (GLfloat)flipped_rect.bottom); glVertex2f(-1, 1); + glTexCoord2f((GLfloat)flipped_rect.left, (GLfloat)flipped_rect.top ); glVertex2f(-1, -1); + glTexCoord2f((GLfloat)flipped_rect.right, (GLfloat)flipped_rect.top ); glVertex2f( 1, -1); + glTexCoord2f((GLfloat)flipped_rect.right, (GLfloat)flipped_rect.bottom); glVertex2f( 1, 1); glEnd(); GL_REPORT_ERRORD();