mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-04 01:12:41 +00:00
Refactoring and cleanup of GLInterface (now GLContext)
This commit is contained in:
parent
74b82bab3b
commit
134d967be2
39 changed files with 741 additions and 690 deletions
|
@ -12,7 +12,7 @@
|
|||
#include "Common/Assert.h"
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/GL/GLInterfaceBase.h"
|
||||
#include "Common/GL/GLContext.h"
|
||||
#include "Common/Logging/Log.h"
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
@ -805,7 +805,7 @@ void ProgramShaderCache::CreateHeader()
|
|||
|
||||
bool SharedContextAsyncShaderCompiler::WorkerThreadInitMainThread(void** param)
|
||||
{
|
||||
std::unique_ptr<cInterfaceBase> context = GLInterface->CreateSharedContext();
|
||||
std::unique_ptr<GLContext> context = g_main_gl_context->CreateSharedContext();
|
||||
if (!context)
|
||||
{
|
||||
PanicAlert("Failed to create shared context for shader compiling.");
|
||||
|
@ -818,7 +818,7 @@ bool SharedContextAsyncShaderCompiler::WorkerThreadInitMainThread(void** param)
|
|||
|
||||
bool SharedContextAsyncShaderCompiler::WorkerThreadInitWorkerThread(void* param)
|
||||
{
|
||||
cInterfaceBase* context = static_cast<cInterfaceBase*>(param);
|
||||
GLContext* context = static_cast<GLContext*>(param);
|
||||
if (!context->MakeCurrent())
|
||||
return false;
|
||||
|
||||
|
@ -831,7 +831,7 @@ bool SharedContextAsyncShaderCompiler::WorkerThreadInitWorkerThread(void* param)
|
|||
|
||||
void SharedContextAsyncShaderCompiler::WorkerThreadExit(void* param)
|
||||
{
|
||||
cInterfaceBase* context = static_cast<cInterfaceBase*>(param);
|
||||
GLContext* context = static_cast<GLContext*>(param);
|
||||
context->ClearCurrent();
|
||||
delete context;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue