summaryrefslogtreecommitdiff
path: root/source/tests/win32/01-window/03_sub_menu.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-06-21 22:47:36 +0800
committerchai <chaifix@163.com>2019-06-21 22:47:36 +0800
commit7894c2971626f9560b4ec77a1ce5a9a64a4f3810 (patch)
treec7bd04fbf4b8e21b48c4d6902c4bd910987e7560 /source/tests/win32/01-window/03_sub_menu.cpp
parent8ee3f7453bf7b0db5c7358e697e91714d825c87d (diff)
*格式化代码
Diffstat (limited to 'source/tests/win32/01-window/03_sub_menu.cpp')
-rw-r--r--source/tests/win32/01-window/03_sub_menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tests/win32/01-window/03_sub_menu.cpp b/source/tests/win32/01-window/03_sub_menu.cpp
index 6fe93d7..9467334 100644
--- a/source/tests/win32/01-window/03_sub_menu.cpp
+++ b/source/tests/win32/01-window/03_sub_menu.cpp
@@ -163,7 +163,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg,
{
int imgLoc = shader->GetUniformLocation("img");
int code = gfx.GetError();
- gfx.UseShader(shader);
+ gfx.SetActiveShader(shader);
shader->SetUniformTexture(imgLoc, *img);
gfx.SetMatrixMode(MATRIX_MODE_PROJECTION);
gfx.LoadIdentity();
@@ -183,7 +183,7 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg,
//gfx.DrawArrays(GL_TRIANGLE_STRIP, 0, 4);
shader->DisableAttribute(locs.pos);
shader->DisableAttribute(locs.tex);
- gfx.UnuseShader();
+ gfx.SetActiveShader(NULL);
}
glFlush();
BeginPaint(hwnd, &ps); EndPaint(hwnd, &ps);