mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[vulkan] Save the current scene in the scene context
Now this I really don't know why I didn't do when I first created the context.
This commit is contained in:
parent
ff5d4d8de1
commit
c99a49a958
2 changed files with 4 additions and 2 deletions
|
@ -64,6 +64,7 @@ typedef struct scenectx_s {
|
|||
struct qfv_resource_s *entities;
|
||||
scnframeset_t frames;
|
||||
int max_entities;
|
||||
struct scene_s *scene;
|
||||
} scenectx_t;
|
||||
|
||||
struct vulkan_ctx_s;
|
||||
|
|
|
@ -269,9 +269,10 @@ Vulkan_Scene_Shutdown (vulkan_ctx_t *ctx)
|
|||
void
|
||||
Vulkan_NewScene (scene_t *scene, vulkan_ctx_t *ctx)
|
||||
{
|
||||
int i;
|
||||
auto sctx = ctx->scene_context;
|
||||
sctx->scene = scene;
|
||||
|
||||
for (i = 0; i < 256; i++) {
|
||||
for (int i = 0; i < 256; i++) {
|
||||
d_lightstylevalue[i] = 264; // normal light value
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue