mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Misc warning fixes.
One of the fixes in Source/Plugins/Plugin_VideoOGL/Src/Render.cpp (for an uninitialized variable) looks like it could actually have real-world effects; someone familiar with the code should check that the fix is correct. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3669 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -93,7 +93,6 @@ static FILE* f_pFrameDump;
|
||||
static int s_MSAASamples = 1;
|
||||
static int s_MSAACoverageSamples = 0;
|
||||
|
||||
static bool s_bHaveStencilBuffer = false;
|
||||
bool s_bHaveFramebufferBlit = false; // export to FramebufferManager.cpp
|
||||
static bool s_bHaveCoverageMSAA = false;
|
||||
static u32 s_blendMode;
|
||||
@ -644,9 +643,6 @@ void ComputeBackbufferRectangle(TRectangle *rc)
|
||||
// The new width and height
|
||||
FloatGLWidth = FloatGLWidth * Ratio;
|
||||
FloatGLHeight = FloatGLHeight * Ratio;
|
||||
// The new width and height ratio
|
||||
float WidthRatio = ((float)FloatGLWidth) / 640.0;
|
||||
float HeightRatio = ((float)FloatGLHeight) / 480.0;
|
||||
// Adjust the X and Y offset
|
||||
FloatXOffset = FloatXOffset - (IncreasedWidth / 2.0);
|
||||
FloatYOffset = FloatYOffset - (IncreasedHeight / 2.0);
|
||||
@ -724,6 +720,7 @@ void Renderer::Swap(u32 xfbAddr, u32 srcWidth, u32 srcHeight, s32 yOffset)
|
||||
else
|
||||
{
|
||||
u_max = (float)xfbSource->texWidth;
|
||||
v_min = 0.f;
|
||||
v_max = (float)xfbSource->texHeight;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user