Author
Topic: resizing FrameBuffer and shadows (Read 2378 times)

I faced another weird situation. if I resize FrameBuffer when shadows are on, size change isn't reflected. FrameBuffer.getWidth/Height returns the correct values but buffer is rendered as initial size.

this is what I get by resizing 800x600 to 1024x768

reverse is also true. this is what I get by a resizing a higher resolution to 800x600

If I disable shadows and resize screen again, everything seems ok. but after enabling shadows and resizing I end up with initial size.

I'm not sure...i looked like as if the scene was rendered using a wrong camera/camera matrix. Are you by any chance doing something in another thread that modifies jPCT related instances like moving the camera in an event listener or something like that?