mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 20:41:38 +12:00
[PICA] Start fixing shader bugs & adding depth (Breaks Mario for now :( )
This commit is contained in:
parent
f9287c1eda
commit
f90dd2d60b
6 changed files with 59 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue