|
@@ -154,9 +154,13 @@ public: |
|
|
|
|
|
|
|
|
if (openGLversion >= openGL3_2)
|
|
|
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
|
|
|
else
|
|
|
{
|
|
|
{
|
|
|