Browse Source

Fix for iOS high-DPI openGL.

tags/2021-05-28
jules 13 years ago
parent
commit
b4b8aa939f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_opengl/native/juce_OpenGL_ios.h

+ 2
- 0
modules/juce_opengl/native/juce_OpenGL_ios.h View File

@@ -66,6 +66,8 @@ public:
view.userInteractionEnabled = NO;
glLayer = (CAEAGLLayer*) [view layer];
glLayer.contentsScale = Desktop::getInstance().getDisplays().getMainDisplay().scale;
[((UIView*) peer->getNativeHandle()) addSubview: view];
context = [EAGLContext alloc];


Loading…
Cancel
Save