From 7894c2971626f9560b4ec77a1ce5a9a64a4f3810 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 21 Jun 2019 22:47:36 +0800 Subject: =?UTF-8?q?*=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/tests/win32/01-window/03_sub_menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/tests') 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); -- cgit v1.1-26-g67d0