mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Mostly fix for OGL plugin, putting it's shaders in the right place, few other bugs here and there though. Fix for CPU detect and removed a quick hack to reduce underflows in the HLE plugin. Added AA for Linux, but may be only usable by ATI/Intel cards or Opensource drivers
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@231 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -602,10 +602,10 @@ void LoadBPReg(u32 value0)
|
||||
|
||||
((u32*)&bpmem)[opcode] = newval;
|
||||
TRectangle rc = {
|
||||
(int)(bpmem.copyTexSrcXY.x),
|
||||
(int)(bpmem.copyTexSrcXY.y),
|
||||
(int)((bpmem.copyTexSrcXY.x+bpmem.copyTexSrcWH.x)),
|
||||
(int)((bpmem.copyTexSrcXY.y+bpmem.copyTexSrcWH.y))
|
||||
(int)(bpmem.copyTexSrcXY.x * MValue),
|
||||
(int)(bpmem.copyTexSrcXY.y * MValue),
|
||||
(int)((bpmem.copyTexSrcXY.x * MValue + bpmem.copyTexSrcWH.x * MValue)),
|
||||
(int)((bpmem.copyTexSrcXY.y * MValue + bpmem.copyTexSrcWH. * MValuey))
|
||||
};
|
||||
|
||||
UPE_Copy PE_copy;
|
||||
@ -633,7 +633,8 @@ void LoadBPReg(u32 value0)
|
||||
glViewport(0, 0, Renderer::GetTargetWidth(), Renderer::GetTargetHeight());
|
||||
// if copied to texture, set the dimensions to the source copy dims, otherwise, clear the entire buffer
|
||||
if( PE_copy.copy_to_xfb == 0 )
|
||||
glScissor(rc.left, (Renderer::GetTargetHeight()-rc.bottom), (rc.right-rc.left), (rc.bottom-rc.top));
|
||||
glScissor(rc.left * MValue, (Renderer::GetTargetHeight()-rc.bottom * MValue),
|
||||
(rc.right * MValue - rc.left * MValue), (rc.bottom * MValue-rc.top * MValue));
|
||||
VertexShaderMngr::SetViewportChanged();
|
||||
|
||||
// since clear operations use the source rectangle, have to do regular renders (glClear clears the entire buffer)
|
||||
|
@ -286,7 +286,7 @@ bool OpenGL_Create(SVideoInitialize &_VideoInitialize, int _iwidth, int _iheight
|
||||
GLX_GREEN_SIZE, 8,
|
||||
GLX_BLUE_SIZE, 8,
|
||||
GLX_DEPTH_SIZE, 24,
|
||||
GLX_SAMPLE_BUFFERS_ARB, 1, GLX_SAMPLES_ARB, 1, None };
|
||||
GLX_SAMPLE_BUFFERS_ARB, g_Config.iMultisampleMode, GLX_SAMPLES_ARB, 1, None };
|
||||
GLWin.dpy = XOpenDisplay(0);
|
||||
g_VideoInitialize.pWindowHandle = (HWND)GLWin.dpy;
|
||||
GLWin.screen = DefaultScreen(GLWin.dpy);
|
||||
|
@ -66,6 +66,8 @@ void Config::Load()
|
||||
iniFile.Get("Settings", "DumpTextures", &bDumpTextures, 0);
|
||||
iniFile.Get("Settings", "ShowShaderErrors", &bShowShaderErrors, 0);
|
||||
iniFile.Get("Settings", "Multisample", &iMultisampleMode, 0);
|
||||
if(iMultisampleMode == 0)
|
||||
iMultisampleMode = 1;
|
||||
std::string s;
|
||||
iniFile.Get("Settings", "TexDumpPath", &s, 0);
|
||||
if( s.size() < sizeof(texDumpPath) )
|
||||
|
@ -18,7 +18,9 @@
|
||||
#include "Globals.h"
|
||||
#include <list>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <mmsystem.h>
|
||||
#endif
|
||||
|
||||
#include "GLInit.h"
|
||||
#include "Render.h"
|
||||
@ -450,16 +452,13 @@ void Renderer::ReinitView(int nNewWidth, int nNewHeight)
|
||||
nBackbufferWidth = nNewWidth > 16 ? nNewWidth : 16;
|
||||
nBackbufferHeight = nNewHeight > 16 ? nNewHeight : 16;
|
||||
}
|
||||
//TODO: Return correct Values
|
||||
int Renderer::GetTargetWidth()
|
||||
{
|
||||
//return 640;
|
||||
return nBackbufferWidth;
|
||||
}
|
||||
|
||||
int Renderer::GetTargetHeight()
|
||||
{
|
||||
//return 480;
|
||||
return nBackbufferHeight;
|
||||
}
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
// Official SVN repository and contact information can be found at
|
||||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#include <wx/aboutdlg.h>
|
||||
#include "Globals.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
Reference in New Issue
Block a user