Skip to content

Commit

Permalink
sokol_gfx.h: fix msvc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Oct 15, 2024
1 parent 1b62020 commit 1080063
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sokol_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -16611,7 +16611,7 @@ _SOKOL_PRIVATE bool _sg_validate_shader_desc(const sg_shader_desc* desc) {
#endif
}

uint64_t img_slot_mask = 0;
uint32_t img_slot_mask = 0;
for (size_t img_idx = 0; img_idx < SG_MAX_IMAGE_BINDSLOTS; img_idx++) {
const sg_shader_image* img_desc = &desc->images[img_idx];
if (img_desc->stage == SG_SHADERSTAGE_NONE) {
Expand Down Expand Up @@ -16655,8 +16655,8 @@ _SOKOL_PRIVATE bool _sg_validate_shader_desc(const sg_shader_desc* desc) {
#endif
}

uint64_t ref_img_slot_mask = 0;
uint64_t ref_smp_slot_mask = 0;
uint32_t ref_img_slot_mask = 0;
uint32_t ref_smp_slot_mask = 0;
for (size_t img_smp_idx = 0; img_smp_idx < SG_MAX_IMAGE_SAMPLER_PAIRS; img_smp_idx++) {
const sg_shader_image_sampler_pair* img_smp_desc = &desc->image_sampler_pairs[img_smp_idx];
if (img_smp_desc->stage == SG_SHADERSTAGE_NONE) {
Expand Down

0 comments on commit 1080063

Please sign in to comment.