Skip to content

Commit

Permalink
Fixed an issue with custom shaders from Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
tanis2000 committed May 1, 2024
1 parent 6584cf9 commit 5238459
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/binocle/core/binocle_gd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1243,9 +1243,12 @@ sg_shader_desc binocle_gd_create_offscreen_shader_desc(const char *shader_vs_src
.fs.byte_code = default_fs_bytecode,
.fs.byte_code_size = sizeof(default_fs_bytecode),
#endif
.fs.images[0] = {
// .name = "tex0",
.image_type = SG_IMAGETYPE_2D},
.fs.images[0] = {.used = true, .image_type = SG_IMAGETYPE_2D},
.fs.samplers[0] = {.used = true, .sampler_type = SG_SAMPLERTYPE_FILTERING},
.fs.image_sampler_pairs[0] = {.used = true,
.glsl_name = "tex0",
.image_slot = 0,
.sampler_slot = 0},
};
return shader_desc;
}
Expand Down

0 comments on commit 5238459

Please sign in to comment.