allegroflare / allegro_flare

Application toolkit for Allegro 5
https://clubcatt.com/allegroflare
MIT License
36 stars 6 forks source link

Camera3D projection setup not working on Windows #277

Open MarkOates opened 3 months ago

MarkOates commented 3 months ago

In some cases, projection is not changing the context as expected. The exact case has not been isolated, but in Camera3D::setup_projection_on, commenting out these two lines:

   al_set_render_state(ALLEGRO_DEPTH_TEST, 1);
   al_set_render_state(ALLEGRO_WRITE_MASK, ALLEGRO_MASK_DEPTH | ALLEGRO_MASK_RGBA);

...has shown to restore the rendering (without testing for any side-effects).

Some other ideas

Not there is a similar setup_dimensional_projection that is used in Camera2D and seems to work fine.

There has not yet been an isolated minimal test made. It also could be related to the framework, backgrounds.