mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-15 00:24:19 +00:00
iOS: Convert logical to physical bounds when resolving OpenGL multisampled framebuffers
This commit is contained in:
parent
b8206e3604
commit
d83b3f7716
1 changed files with 7 additions and 3 deletions
|
|
@ -154,9 +154,13 @@ public:
|
|||
|
||||
if (openGLversion >= openGL3_2)
|
||||
{
|
||||
glBlitFramebuffer (0, 0, lastBounds.getWidth(), lastBounds.getHeight(),
|
||||
0, 0, lastBounds.getWidth(), lastBounds.getHeight(),
|
||||
GL_COLOR_BUFFER_BIT, GL_NEAREST);
|
||||
auto w = roundToInt (lastBounds.getWidth() * glLayer.contentsScale);
|
||||
auto h = roundToInt (lastBounds.getHeight() * glLayer.contentsScale);
|
||||
|
||||
glBlitFramebuffer (0, 0, w, h,
|
||||
0, 0, w, h,
|
||||
GL_COLOR_BUFFER_BIT,
|
||||
GL_NEAREST);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue