andykorth / Pencil.Gaming

An open-source, cross-platform gaming library for C# with bindings for OpenGL, OpenAL, and GLFW.
136 stars 35 forks source link

Window creation comparison operator #38

Closed Wargog closed 8 years ago

Wargog commented 8 years ago

When creating a new window, if you error check it, you will get an operator == error, and you cannot use if (window == GlfwWindowPtr.Null) { to check for errors in window creation

bbrown683 commented 8 years ago

Seems like a possible oversight. I guess it wasn't that large of a deal since you can use workarounds such as if(window.Equals(null)) that does pretty much the same thing.