-
Notifications
You must be signed in to change notification settings - Fork 49
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
glTexImage2D throws System.AccessViolationException: #47
Comments
here the code using System.Drawing; namespace TheRaft.Core.Graphics
} |
fixed, was not allocating the memory for the texture |
Glad you got it figured out, but one word of warning if you are using the OpenGL bindings from the example project: They are not thoroughly tested nor even "officially" part of this project, were simply generated via a dirty script I wrote on a fixed GL version using the OpenGL registry, and were merely provided as convenience to test this project with. While they will likely suffice for most cases without any issue, I would not personally consider them production-ready, nor exactly the most user-friendly. |
no clue why this is happening but when i convert a System.Drawing image to a byte[] then to a IntPtr and pass it to this function, i get a System.AccessViolationException:
The text was updated successfully, but these errors were encountered: