Migrate OpenGL specific headers to renderer_gl
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include "gl_state.hpp"
|
||||
#include "renderer_gl/gl_state.hpp"
|
||||
|
||||
void GLStateManager::resetBlend() {
|
||||
blendEnabled = false;
|
||||
@@ -607,6 +607,8 @@ void RendererGL::reset() {
|
||||
}
|
||||
|
||||
void RendererGL::initGraphicsContext() {
|
||||
gl.reset();
|
||||
|
||||
OpenGL::Shader vert(vertexShader, OpenGL::Vertex);
|
||||
OpenGL::Shader frag(fragmentShader, OpenGL::Fragment);
|
||||
triangleProgram.create({vert, frag});
|
||||
|
||||
@@ -433,12 +433,7 @@ bool Emulator::loadELF(std::ifstream& file) {
|
||||
}
|
||||
|
||||
// Reset our graphics context and initialize the GPU's graphics context
|
||||
void Emulator::initGraphicsContext() {
|
||||
#if PANDA3DS_ENABLE_OPENGL
|
||||
gl.reset(); // TODO (For when we have multiple backends): Only do this if we are using OpenGL
|
||||
#endif
|
||||
gpu.initGraphicsContext();
|
||||
}
|
||||
void Emulator::initGraphicsContext() { gpu.initGraphicsContext(); }
|
||||
|
||||
#ifdef PANDA3DS_ENABLE_HTTP_SERVER
|
||||
void Emulator::pollHttpServer() {
|
||||
|
||||
Reference in New Issue
Block a user