OGL Plugin: added more info to an error message and some warning fixes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2640 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
19921c057a
commit
31580db11d
|
@ -89,7 +89,7 @@ void __Log(const char *fmt, ...)
|
||||||
|
|
||||||
void __Log(int type, const char *fmt, ...)
|
void __Log(int type, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
int len = strlen(fmt);
|
int len = (int)strlen(fmt);
|
||||||
if (!len)
|
if (!len)
|
||||||
return;
|
return;
|
||||||
char* Msg = (char*)alloca(len + 512);
|
char* Msg = (char*)alloca(len + 512);
|
||||||
|
|
|
@ -199,7 +199,7 @@ bool Renderer::Init()
|
||||||
const char *ptoken = (const char*)glGetString(GL_EXTENSIONS);
|
const char *ptoken = (const char*)glGetString(GL_EXTENSIONS);
|
||||||
if (!ptoken)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
INFO_LOG(VIDEO, "Supported OpenGL Extensions:\n");
|
INFO_LOG(VIDEO, "Supported OpenGL Extensions:\n");
|
||||||
|
|
|
@ -697,10 +697,10 @@ void TextureMngr::CopyRenderTargetToTexture(u32 address, bool bFromZBuffer, bool
|
||||||
GL_REPORT_ERRORD();
|
GL_REPORT_ERRORD();
|
||||||
|
|
||||||
glBegin(GL_QUADS);
|
glBegin(GL_QUADS);
|
||||||
glTexCoord2f(flipped_rect.left, flipped_rect.bottom); glVertex2f(-1, 1);
|
glTexCoord2f((GLfloat)flipped_rect.left, (GLfloat)flipped_rect.bottom); glVertex2f(-1, 1);
|
||||||
glTexCoord2f(flipped_rect.left, flipped_rect.top ); glVertex2f(-1, -1);
|
glTexCoord2f((GLfloat)flipped_rect.left, (GLfloat)flipped_rect.top ); glVertex2f(-1, -1);
|
||||||
glTexCoord2f(flipped_rect.right, flipped_rect.top ); glVertex2f( 1, -1);
|
glTexCoord2f((GLfloat)flipped_rect.right, (GLfloat)flipped_rect.top ); glVertex2f( 1, -1);
|
||||||
glTexCoord2f(flipped_rect.right, flipped_rect.bottom); glVertex2f( 1, 1);
|
glTexCoord2f((GLfloat)flipped_rect.right, (GLfloat)flipped_rect.bottom); glVertex2f( 1, 1);
|
||||||
glEnd();
|
glEnd();
|
||||||
|
|
||||||
GL_REPORT_ERRORD();
|
GL_REPORT_ERRORD();
|
||||||
|
|
Loading…
Reference in New Issue