[PICA] Start fixing shader bugs & adding depth (Breaks Mario for now :( )

This commit is contained in:
wheremyfoodat 2022-09-27 00:31:59 +03:00
parent f9287c1eda
commit f90dd2d60b
6 changed files with 59 additions and 22 deletions

View file

@ -23,15 +23,9 @@ void Emulator::render() {
void Emulator::run() {
while (window.isOpen()) {
// Clear window to black
OpenGL::bindScreenFramebuffer();
OpenGL::disableScissor();
OpenGL::setClearColor(0.0, 0.0, 0.0, 1.0);
OpenGL::clearColor();
gpu.getGraphicsContext(); // Give the GPU a rendering context
runFrame(); // Run 1 frame of instructions
gpu.display();
gpu.display(); // Display graphics
// Send VBlank interrupts
kernel.sendGPUInterrupt(GPUInterrupt::VBlank0);