summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gfx/src/util/skyquad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gfx/src/util/skyquad.c b/gfx/src/util/skyquad.c
index ff8f73f..08fa044 100644
--- a/gfx/src/util/skyquad.c
+++ b/gfx/src/util/skyquad.c
@@ -83,15 +83,16 @@ cleanup:
83 83
84/// Create an environment light node. 84/// Create an environment light node.
85static SceneNode* make_environment_light( 85static SceneNode* make_environment_light(
86 SceneNode* root, const Texture* environment_light) { 86 SceneNode* root, const Texture* environment_map) {
87 assert(root); 87 assert(root);
88 assert(environment_map);
88 89
89 Light* light = 0; 90 Light* light = 0;
90 SceneNode* light_node = 0; 91 SceneNode* light_node = 0;
91 92
92 light = gfx_make_light(&(LightDesc){ 93 light = gfx_make_light(&(LightDesc){
93 .type = EnvironmentLightType, 94 .type = EnvironmentLightType,
94 .light = {(EnvironmentLightDesc){.environment_map = environment_light}}}); 95 .light = {(EnvironmentLightDesc){.environment_map = environment_map}}});
95 if (!light) { 96 if (!light) {
96 goto cleanup; 97 goto cleanup;
97 } 98 }