Migrate OpenGL specific headers to renderer_gl

This commit is contained in:
Wunkolo 2023-07-10 10:31:46 -07:00
parent a636a0d1da
commit 4864c51125
7 changed files with 7 additions and 14 deletions

View file

@ -1,4 +1,4 @@
#include "gl_state.hpp"
#include "renderer_gl/gl_state.hpp"
void GLStateManager::resetBlend() {
blendEnabled = false;

View file

@ -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});

View file

@ -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() {