graphics

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b7cf2b0c3ce416219e63d307c1365a44fa326039
parent b07ccf1e3b5d3ba8b52972d06e5afaec97b62e59
Author: Brian Swetland <swetland@frotz.net>
Date:   Sat,  9 Feb 2013 03:39:58 -0800

textgrid: use shader language macro

Diffstat:
Mcommon/textgrid.cc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/textgrid.cc b/common/textgrid.cc @@ -71,17 +71,17 @@ int TextGrid::init(App *a, int w, int h) { if (a->initBuffer(&ubuf, NULL, sizeof(cb))) return -1; #if BUILTIN - if (a->compileShader(&ps, "TextPS.hlsl", + if (a->compileShader(&ps, "TextPS."SL, (void*) codeTextPS, sizeof(codeTextPS), 1)) return -1; - if (a->compileShader(&vs, "TextVS.hlsl", + if (a->compileShader(&vs, "TextVS."SL, (void*) codeTextVS, sizeof(codeTextVS), 1, text_layout_desc, sizeof(text_layout_desc)/sizeof(text_layout_desc[0]))) return -1; #else - if (a->loadShader(&ps, "../common/TextPS.glsl")) + if (a->loadShader(&ps, "../common/TextPS."SL)) return -1; - if (a->loadShader(&vs, "../common/TextVS.glsl", + if (a->loadShader(&vs, "../common/TextVS."SL, text_layout_desc, sizeof(text_layout_desc)/sizeof(text_layout_desc[0]))) return -1; #endif