diff options
| author | Andre Weissflog <floooh@gmail.com> | 2019-03-28 13:22:44 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2019-03-28 13:22:44 +0100 |
| commit | b74bcaea202d29e70132d2d71096b81c660ebf1c (patch) | |
| tree | 5e78de4b1ac2e0ffd96830761e632e5597556f7b /util | |
| parent | 5110cf47d87a96ff5792a3c4d7b29a397f51aeb9 (diff) | |
sokol_gl.h: D3D11 fixes
Diffstat (limited to 'util')
| -rw-r--r-- | util/sokol_gl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sokol_gl.h b/util/sokol_gl.h index 48cd76bb..e15cac4a 100644 --- a/util/sokol_gl.h +++ b/util/sokol_gl.h @@ -316,7 +316,7 @@ static const char* _sgl_vs_src = " float4x4 tm;\n" "};\n" "struct vs_in {\n" - " float4 pos: POS;\n" + " float4 pos: POSITION;\n" " float2 uv: TEXCOORD0;\n" " float4 color: COLOR0;\n" "};\n" @@ -896,7 +896,7 @@ SOKOL_API_IMPL void sgl_setup(const sgl_desc_t* desc) { { sg_vertex_attr_desc* rgba = &_sgl.pip_desc.layout.attrs[2]; rgba->name = "color0"; - rgba->sem_name = "TEXCOORD"; + rgba->sem_name = "COLOR"; rgba->offset = offsetof(_sgl_vertex_t, rgba); rgba->format = SG_VERTEXFORMAT_UBYTE4N; } |