Bug 17767 - OpenTK loosing textures after changing device orientation
Summary: OpenTK loosing textures after changing device orientation
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 7.0.2.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Radek Doulik
Depends on:
Reported: 2014-02-13 19:06 UTC by Mikhail Rozhkov
Modified: 2017-07-24 21:09 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Mikhail Rozhkov 2014-02-13 19:06:06 UTC
After changing device orientation iPhoneOSGameView.LayoutSubviews() is been called. This function recreates the framebuffer (and the current GraphicsContext). Despite GraphicsContext.ShareContexts is set true, OpenTK creates a new EAGLContext with a totally new ShareGroup. As a result all GL resources are lost.
Comment 1 renan jegouzo 2015-12-15 07:56:30 UTC
you need to use GLKit.GLKView
iPhoneOSGameView is kinda deprecated now