Keep -vet happy

This commit is contained in:
gingerBill
2023-06-28 12:19:57 +01:00
parent 866a9fdf19
commit abca3ceac8
3 changed files with 3 additions and 5 deletions

View File

@@ -3,8 +3,6 @@ package all
import c_tokenizer "core:c/frontend/tokenizer"
import c_preprocessor "core:c/frontend/preprocessor"
import virtual "core:mem/virtual"
_ :: c_tokenizer
_ :: c_preprocessor
_ :: virtual

View File

@@ -1067,7 +1067,7 @@ TextIterNext :: proc(
iter.x = iter.nextx
iter.y = iter.nexty
iter.codepointCount += 1
if glyph, ok := __getGlyph(ctx, iter.font, iter.codepoint, iter.isize, iter.iblur); ok {
if glyph, glyph_ok := __getGlyph(ctx, iter.font, iter.codepoint, iter.isize, iter.iblur); glyph_ok {
__getQuad(ctx, iter.font, iter.previousGlyphIndex, glyph, iter.scale, iter.spacing, &iter.nextx, &iter.nexty, quad)
iter.previousGlyphIndex = glyph.index
} else {

View File

@@ -916,8 +916,8 @@ CreateImageMem :: proc(ctx: ^Context, data: []byte, imageFlags: ImageFlags) -> i
return 0
}
data := img[:int(w) * int(h) * int(n)]
image := CreateImageRGBA(ctx, int(w), int(h), imageFlags, data)
pixel_data := img[:int(w) * int(h) * int(n)]
image := CreateImageRGBA(ctx, int(w), int(h), imageFlags, pixel_data)
stbi.image_free(img)
return image
}