xamarin / mac-samples

Sample programs showing how to use Xamarin.Mac on OSX.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NeHeLessons2 no rendering

xdinos opened this issue · comments

Hello!

Could you please be more specific in the issue you are reporting?

Thanks!

Yes sorry, you are right,
If you build and run the sample there isn't any output just the dark(gray) background of the window.

Visual Studio for Mac 8.1, macOS Mojave 10.14.5, XCode 10.2.1

commented

Same.. no rendering.

I get the same issue for other OpenGL mac samples too. I've tested the MacOpenTK sample and the GLFullScreen sample on two different freshly installed machines running Mojave 10.14.6 and XCode 10.3 and I consistently get the issue.

The same issue first came to my attention whilst attempting to upgrade an older Mono Mac OpenGl demo to Xamarin Mac. That demo in particular has a little more logging and as such I can see it failing with with the Open GL error code: InvalidFramebufferOperationExt.

I've introducing similar logging to the MacOpenTK sample and I hit the same failure after the first GL call to Clear.

To be specific you can see the OpenGL errors by introducing a call to something like this:

        public static void Check()
        {
            var ec = GL.GetError();

            if (ec != ErrorCode.NoError)
            {
                throw new Exception(ec.ToString());
            }
        }

after each GL call in the demo.

I think this issue should be changed to a bug instead of a question and its title updated to something more generic such as "Rendering broken for all OpenTK samples".

I also think this issue is likely in need some form of escalation as the root of issue is not problem with the samples themselves (there have been no breaking changes that the samples have failed to incorporate - they should work as is) but rather a problem with the underlying libraries.

It is possible that this issue could be due to an incompatibility at the Xamarin library level introduced by the changes from Mojave or the latest XCode.

Just checked the xamarin-macios repo and found the same issue listed: xamarin/xamarin-macios#4959

Microsoft support for Xamarin will end on May 1, 2024 for all Xamarin SDKs. In preparation for this, all issues and PRs in this repository are being closed.