diff --git a/include/QF/Vulkan/qf_scene.h b/include/QF/Vulkan/qf_scene.h index a706b8a4b..456e2cad5 100644 --- a/include/QF/Vulkan/qf_scene.h +++ b/include/QF/Vulkan/qf_scene.h @@ -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; diff --git a/libs/video/renderer/vulkan/vulkan_scene.c b/libs/video/renderer/vulkan/vulkan_scene.c index aad348d7d..6067258e2 100644 --- a/libs/video/renderer/vulkan/vulkan_scene.c +++ b/libs/video/renderer/vulkan/vulkan_scene.c @@ -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 }