mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Fix AGL.cpp
This commit is contained in:
@ -18,6 +18,7 @@
|
|||||||
#include "VideoConfig.h"
|
#include "VideoConfig.h"
|
||||||
#include "Host.h"
|
#include "Host.h"
|
||||||
#include "RenderBase.h"
|
#include "RenderBase.h"
|
||||||
|
#include "ConfigManager.h"
|
||||||
|
|
||||||
#include "VertexShaderManager.h"
|
#include "VertexShaderManager.h"
|
||||||
#include "../GLInterface.h"
|
#include "../GLInterface.h"
|
||||||
@ -90,13 +91,6 @@ bool cInterfaceAGL::Create(void *&window_handle)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool cInterfaceAGL::MakeCurrent()
|
bool cInterfaceAGL::MakeCurrent()
|
||||||
{
|
|
||||||
[GLWin.cocoaCtx makeCurrentContext];
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update window width, size and etc. Called from Render.cpp
|
|
||||||
void cInterfaceAGL::Update()
|
|
||||||
{
|
{
|
||||||
int width, height;
|
int width, height;
|
||||||
|
|
||||||
@ -110,6 +104,7 @@ void cInterfaceAGL::Update()
|
|||||||
[GLWin.cocoaCtx makeCurrentContext];
|
[GLWin.cocoaCtx makeCurrentContext];
|
||||||
s_backbuffer_width = width;
|
s_backbuffer_width = width;
|
||||||
s_backbuffer_height = height;
|
s_backbuffer_height = height;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Close backend
|
// Close backend
|
||||||
|
Reference in New Issue
Block a user