mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Fix for iOS high-DPI openGL.
This commit is contained in:
parent
4a9003158a
commit
b4b8aa939f
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue