mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
EGL: Don't depend on VideoCommon or Core
This commit is contained in:
parent
72249b8085
commit
c9836ff592
@ -2,10 +2,7 @@
|
|||||||
// Licensed under GPLv2+
|
// Licensed under GPLv2+
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include "Common/GL/GLInterfaceBase.h"
|
|
||||||
#include "Common/GL/GLInterface/EGL.h"
|
#include "Common/GL/GLInterface/EGL.h"
|
||||||
#include "VideoCommon/DriverDetails.h"
|
|
||||||
#include "VideoCommon/RenderBase.h"
|
|
||||||
|
|
||||||
// Show the current FPS
|
// Show the current FPS
|
||||||
void cInterfaceEGL::Swap()
|
void cInterfaceEGL::Swap()
|
||||||
@ -14,7 +11,6 @@ void cInterfaceEGL::Swap()
|
|||||||
}
|
}
|
||||||
void cInterfaceEGL::SwapInterval(int Interval)
|
void cInterfaceEGL::SwapInterval(int Interval)
|
||||||
{
|
{
|
||||||
if (!DriverDetails::HasBug(DriverDetails::BUG_BROKENVSYNC))
|
|
||||||
eglSwapInterval(egl_dpy, Interval);
|
eglSwapInterval(egl_dpy, Interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
|
|
||||||
#include "Common/GL/GLInterfaceBase.h"
|
#include "Common/GL/GLInterfaceBase.h"
|
||||||
#include "Core/ConfigManager.h"
|
|
||||||
|
|
||||||
class cInterfaceEGL : public cInterfaceBase
|
class cInterfaceEGL : public cInterfaceBase
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
#include "Common/GL/GLInterface/EGLAndroid.h"
|
#include "Common/GL/GLInterface/EGLAndroid.h"
|
||||||
#include "Core/Host.h"
|
|
||||||
|
|
||||||
EGLDisplay cInterfaceEGLAndroid::OpenDisplay()
|
EGLDisplay cInterfaceEGLAndroid::OpenDisplay()
|
||||||
{
|
{
|
||||||
|
@ -639,6 +639,7 @@ Renderer::Renderer()
|
|||||||
|
|
||||||
// Handle VSync on/off
|
// Handle VSync on/off
|
||||||
s_vsync = g_ActiveConfig.IsVSync();
|
s_vsync = g_ActiveConfig.IsVSync();
|
||||||
|
if (!DriverDetails::HasBug(DriverDetails::BUG_BROKENVSYNC))
|
||||||
GLInterface->SwapInterval(s_vsync);
|
GLInterface->SwapInterval(s_vsync);
|
||||||
|
|
||||||
// TODO: Move these somewhere else?
|
// TODO: Move these somewhere else?
|
||||||
@ -1730,6 +1731,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co
|
|||||||
if (s_vsync != g_ActiveConfig.IsVSync())
|
if (s_vsync != g_ActiveConfig.IsVSync())
|
||||||
{
|
{
|
||||||
s_vsync = g_ActiveConfig.IsVSync();
|
s_vsync = g_ActiveConfig.IsVSync();
|
||||||
|
if (!DriverDetails::HasBug(DriverDetails::BUG_BROKENVSYNC))
|
||||||
GLInterface->SwapInterval(s_vsync);
|
GLInterface->SwapInterval(s_vsync);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user