-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid oveloading of GL.DrawElements(). #535
Comments
Xamarin.Android is a very, very old version of OpenTK which is not actively maintained here. Could you try reproducing the same issue with a newer version of OpenTK? |
Seems like this would cause a stack overflow? The overload in this repository (i.e. newer versions of OpenTK) does new IntPtr(offset)); |
@Nihlus @UnknownShadow200 I tried to migrate the OpenTK to v2.0, however, the |
Are you using the android specific project when compiling (or package from nuget)? |
@UnknownShadow200 My project from Visual Studio 2017 with |
https://www.nuget.org/packages/OpenTK/ I don't have Xamarin.Android myself (nor do I use nuget) so I'm not sure if there's an android package for OpenTK. If there isn't perhaps try compiling the OpenTK.Android project in this repository. also going to open an issue on mono's OpenTK for this |
@UnknownShadow200 - We've not yet released android/iOS packages for OpenTK 2.0+. The major hurdle is getting the Android/iOS stuff building on CI, which is pretty annoying with Xamarin. From what I've gathered, the source should be fairly stable for now - if you guys can drop some confirmed reports of it working, and perhaps a brief how-to guide, we can look at getting a package released. |
@UnknownShadow200 I missed about migration what I had tried. First, removed 1.0 which added from the Xamarin, and then added 2.0 by NuGet. Finally, @varon Unfortunately, I got some doubt about stability of OpenTK because of this issue. I hope to be able to use newest version in Xamarin. Thanks for efforts. |
I found some more about overloading issues that some overloadings are not working properly in Xamarin. |
Downloading project from github and compiling OpenTK.Android project didn't
work either?
…On Jun 12, 2017 12:24 AM, "Jong-il Hong" ***@***.***> wrote:
I found some more about overloading issues that some overloadings are not
working properly in Xamarin.
However, using version is not in developing, therefore I'll not list them
here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#535 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGNTJFw1BWbYClXp5H9Z51wT_8XVBdLCks5sC_iSgaJpZM4N0Pvj>
.
|
Description
There is an invalid overloading at
GL.DrawElements()
.Repro steps
Just change your
OpenTK.Graphics.ES20.GL.DrawElements(BeginMode mode, int count, DrawElementsType type, IntPtr indices)
to
OpenTK.Graphics.ES20.GL.DrawElements(BeginMode mode, int count, DrawElementsType type, int offset)
.
May wonder, why use
int offset
version. That is useful if binding an IBO instead passing an int[].Expected behavior
The parameter
offset
means IBO's index element offset.Actual behavior
Got an
UnhandledException
.Related information
In
Xamarin.Android
usingOpenTK-1.0
.LogCat:
java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@c2030b6 does not exist
.Maybe the binding information is invalid.
The text was updated successfully, but these errors were encountered: