1
0
Fork 0
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:
jules 2013-01-14 20:35:14 +00:00
parent 4a9003158a
commit b4b8aa939f

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];