Bug 6684 - OpenTK samples need to have HardwareAccelerated=false set #if __ANDROID_11__
Summary: OpenTK samples need to have HardwareAccelerated=false set #if __ANDROID_11__
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.2.x
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Oleg Demchenko
URL:
: 6093 ()
Depends on:
Blocks:
 
Reported: 2012-08-24 16:19 UTC by PJ
Modified: 2013-10-01 19:12 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description PJ 2012-08-24 16:19:36 UTC
Without this change, you see bug 6093.


This will be a workaround for the issues that dominique commented on in bug 5715, comment 5 and jonp commented on in bug 5715, comment 6.



*Works*

https://github.com/xamarin/monodroid-samples/blob/master/TexturedCube/TexturedCubeActivity.cs

namespace Mono.Samples.TexturedCube
{
	[Activity (Label = "@string/app_name", MainLauncher = true, Icon = "@drawable/app_texturedcube",
#if __ANDROID_11__
		HardwareAccelerated=false,
#endif
		ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.KeyboardHidden, LaunchMode = LaunchMode.SingleTask)]
	public class TexturedCubeActivity : Activity


*Doesn't work* 

https://github.com/xamarin/monodroid-samples/blob/master/TexturedCube-1.0/TexturedCubeActivity.cs

namespace Mono.Samples.TexturedCube
{
	[Activity (Label = "@string/app_name", MainLauncher = true, Icon = "@drawable/app_texturedcube",
		ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.KeyboardHidden, LaunchMode = LaunchMode.SingleTask)]
	public class TexturedCubeActivity : Activity




This change is already present in some of the OpenTK samples, but not all.
Comment 1 PJ 2012-08-24 16:27:21 UTC
*** Bug 6093 has been marked as a duplicate of this bug. ***
Comment 2 Oleg Demchenko 2013-10-01 18:39:08 UTC
Added this change to GLCube, GLCube-1.0, GLTriangle20, GLTriangle20-1.0
Commit: 776e1d22aa69b1d7084dcf6b34db9995dc2782d6
Comment 3 PJ 2013-10-01 19:12:41 UTC
Sufficient for resolution. RESOLVED FIXED.