I made this post on the Github page but it’ll get more visibility here.
Basically, how exactly do I make a viewport without a camera/scene/octree? I tried doing it with the Viewport constructor that only takes a context, and I still get a null pointer access because the view still tries to flip the camera that isn’t there. The culprit is this line:
if (renderTarget_)
{
// On OpenGL, flip the projection if rendering to a texture so that the texture can be addressed in the same way
// as a render texture produced on Direct3D9
#ifdef USE_OPENGL
camera_->SetFlipVertical(true);
#endif
}
There are a bunch of checks beforehand, but that line doesn’t care if the camera is null or not. Is this a bug or am I using the feature wrong?