mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
0e3a84b4a8
It works after the move, on Windows and Android at least. Deletes the D3DX9 shader compiler loader, which was not used.
37 lines
882 B
C++
37 lines
882 B
C++
|
|
#include "Common/Log.h"
|
|
#include "Core/Config.h"
|
|
#include "Core/ConfigValues.h"
|
|
#include "Core/System.h"
|
|
#include "Common/GPU/OpenGL/GLFeatures.h"
|
|
|
|
#include "libretro/LibretroGLCoreContext.h"
|
|
|
|
bool LibretroGLCoreContext::Init() {
|
|
if (!LibretroHWRenderContext::Init(true))
|
|
return false;
|
|
|
|
g_Config.iGPUBackend = (int)GPUBackend::OPENGL;
|
|
return true;
|
|
}
|
|
|
|
void LibretroGLCoreContext::CreateDrawContext() {
|
|
if (!glewInitDone) {
|
|
#if !defined(IOS) && !defined(USING_GLES2)
|
|
if (glewInit() != GLEW_OK) {
|
|
ERROR_LOG(G3D, "glewInit() failed.\n");
|
|
return;
|
|
}
|
|
#endif
|
|
glewInitDone = true;
|
|
CheckGLExtensions();
|
|
}
|
|
draw_ = Draw::T3DCreateGLContext();
|
|
renderManager_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
|
|
}
|
|
|
|
void LibretroGLCoreContext::DestroyDrawContext() {
|
|
LibretroHWRenderContext::DestroyDrawContext();
|
|
renderManager_ = nullptr;
|
|
}
|