mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Aniso filter setting working in GL, some code moving around, spelling fixes
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1341 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -82,11 +82,15 @@ void XFB_Draw(u8 *xfb_in_ram, u32 width, u32 height, s32 yOffset)
|
||||
glViewport(nXoff, nYoff, nBackbufferWidth, nBackbufferHeight);
|
||||
GL_REPORT_ERRORD();
|
||||
|
||||
float w = (float)width;
|
||||
float h = (float)height;
|
||||
float yOff = (float)yOffset;
|
||||
|
||||
glBegin(GL_QUADS);
|
||||
glTexCoord2f(width, 0 - yOffset); glVertex2f(1,-1);
|
||||
glTexCoord2f(width, height - yOffset); glVertex2f(1,1);
|
||||
glTexCoord2f(0, height - yOffset); glVertex2f(-1,1);
|
||||
glTexCoord2f(0, 0 - yOffset); glVertex2f(-1,-1);
|
||||
glTexCoord2f(w, 0 - yOff); glVertex2f(1, -1);
|
||||
glTexCoord2f(w, h - yOff); glVertex2f(1, 1);
|
||||
glTexCoord2f(0, h - yOff); glVertex2f(-1, 1);
|
||||
glTexCoord2f(0, 0 - yOff); glVertex2f(-1,-1);
|
||||
glEnd();
|
||||
|
||||
TextureMngr::DisableStage(0);
|
||||
|
Reference in New Issue
Block a user