[PICA] Enable viewport

This commit is contained in:
wheremyfoodat 2023-02-28 22:53:11 +02:00
parent 3912fd4779
commit d7c2c27e99

View file

@ -287,7 +287,7 @@ void Renderer::drawVertices(OpenGL::Primitives primType, Vertex* vertices, u32 c
// TODO: Actually use this
float viewportWidth = f24::fromRaw(regs[PICAInternalRegs::ViewportWidth] & 0xffffff).toFloat32() * 2.0;
float viewportHeight = f24::fromRaw(regs[PICAInternalRegs::ViewportHeight] & 0xffffff).toFloat32() * 2.0;
//OpenGL::setViewport(viewportWidth, viewportHeight);
OpenGL::setViewport(viewportWidth, viewportHeight);
if (depthEnable) {
OpenGL::enableDepth();