libretro: crosshair/vmu invisible with gl per-triangle/per-strip
libretro needs ofbo.aspectRatio to be set when drawing crosshairs and vmus
This commit is contained in:
parent
ab25cc73a9
commit
73cbd7a183
|
@ -1401,13 +1401,13 @@ bool OpenGLRenderer::renderFrame(int width, int height)
|
||||||
ReadRTTBuffer();
|
ReadRTTBuffer();
|
||||||
else if (config::EmulateFramebuffer)
|
else if (config::EmulateFramebuffer)
|
||||||
writeFramebufferToVRAM();
|
writeFramebufferToVRAM();
|
||||||
#ifndef LIBRETRO
|
|
||||||
else {
|
else {
|
||||||
gl.ofbo.aspectRatio = getOutputFramebufferAspectRatio();
|
gl.ofbo.aspectRatio = getOutputFramebufferAspectRatio();
|
||||||
|
#ifndef LIBRETRO
|
||||||
gl.ofbo2.ready = false;
|
gl.ofbo2.ready = false;
|
||||||
renderLastFrame();
|
renderLastFrame();
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
GlVertexArray::unbind();
|
GlVertexArray::unbind();
|
||||||
|
|
||||||
return !is_rtt;
|
return !is_rtt;
|
||||||
|
|
Loading…
Reference in New Issue