My code crashing in line: “tex->SetSize(2, 2, Urho3D::Graphics::GetRGBAFormat());”
I just debug what exacly crashing, and here you go:
“Texture2D::Create() pointer is NULL. Why?”
Well, i definately found a solution.
In OpenGL Application i need set Preprocessor definition: URHO3D_OPENGL
If i not set this then would cause heap corruptions etc…
[quote=“simple”]Well, i definately found a solution.
In OpenGL Application i need set Preprocessor definition: URHO3D_OPENGL
If i not set this then would cause heap corruptions etc…[/quote]
Did u set Urho to use OpenGL in the cmake build options?
[quote=“simple”]Well, i definately found a solution.
In OpenGL Application i need set Preprocessor definition: URHO3D_OPENGL
If i not set this then would cause heap corruptions etc…[/quote]
That would be it! The graphics implementation headers are weird in that regard. I’m hoping this gets changed later down the road.