Fill window with dark grey at creation time, fix #373#374
Fill window with dark grey at creation time, fix #373#374illwieckz merged 1 commit intoDaemonEngine:0.52.0/syncfrom
Conversation
31bb5c0 to
c1116c2
Compare
|
I've updated the code to not use a pitch black color but a dark grey one ( The window looks like this until the main menu is displayed: In fact, the best we can do is to just display a nice “powered with Dæmon engine” picture in the middle, with a nice logo. Because this is expected to be displayed as early as possible, it would require to embed the picture in the engine and display it with OpenGL functions by hand. That would be perfect. Anyway, I consider my PR ready, so please tell if something is wrong with my implementation. |
|
@cmf028, do you have something to say about this? |
|
It's probalby fine to merge |
|
Yes, for what I now understand, this is not asking to really do something, but to set what must be the default color of something that is left untouched, then asking to not let untouched pixels uncolored, and to finish the frame. This is very unlikely to have any effect on subsequent draw calls, because anyway this code is expected to only do things on pixels that were never drawn. We can see similar code there (which looks like to share a bit the purpose): Daemon/src/engine/renderer/tr_init.cpp Lines 881 to 886 in 6b94e2e And there: Daemon/src/engine/renderer/tr_backend.cpp Lines 190 to 201 in 6b94e2e |

Attempt to fill window with black at creation time, to prevent this (and fix #373):
It works but I know nothing about OpenGL and SDL, so maybe I'm introducing a time bomb…
@gimhael or @Kangz, is it OK to do that?