aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2020-06-21 15:51:34 +0200
committerAndre Weissflog <floooh@gmail.com>2020-06-21 15:51:34 +0200
commit617c55afc294168f65b721d4ea0b190e5e45188f (patch)
treeb6a55ee06f2e610faea11e86162bedf0056a8d72 /util
parent5a24ae26e6db842cc529ccd683fea7d34b2d86ad (diff)
sokol_debugtext.h: minor cleanup in shader creation
Diffstat (limited to 'util')
-rw-r--r--util/sokol_debugtext.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sokol_debugtext.h b/util/sokol_debugtext.h
index ddfb331e..7f50816a 100644
--- a/util/sokol_debugtext.h
+++ b/util/sokol_debugtext.h
@@ -2164,7 +2164,7 @@ static const uint8_t _sdtx_font_oric[2048] = {
/*
Embedded source code compiled with:
- sokol-shdc -i debugtext.glsl -o debugtext.h -l glsl330:glsl100:hlsl4:metal_macos:metal_ios:metal_sim:wgpu
+ sokol-shdc -i debugtext.glsl -o debugtext.h -l glsl330:glsl100:hlsl4:metal_macos:metal_ios:metal_sim:wgpu -b
(not that for Metal and D3D11 byte code, sokol-shdc must be run
on macOS and Windows)
@@ -3663,6 +3663,7 @@ static void _sdtx_setup_common(void) {
shd_desc.attrs[2].sem_index = 2;
shd_desc.fs.images[0].name = "tex";
shd_desc.fs.images[0].type = SG_IMAGETYPE_2D;
+ shd_desc.fs.images[0].sampler_type = SG_SAMPLERTYPE_FLOAT;
#if defined(SOKOL_GLCORE33)
shd_desc.vs.source = _sdtx_vs_src_glcore33;
shd_desc.fs.source = _sdtx_fs_src_glcore33;