1
0
mirror of https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git synced 2025-08-22 20:25:28 +08:00

修改一处笔误

启用模版测试,所以此处应该是
GL_STENCIL_TEST
This commit is contained in:
LJX
2019-10-30 16:31:46 +08:00
committed by Gary Wang
parent df1f5fda78
commit b4a5b931ce

View File

@@ -125,7 +125,7 @@ void main()
我们首先启用模板测试,并设置测试通过或失败时的行为: 我们首先启用模板测试,并设置测试通过或失败时的行为:
```c++ ```c++
glEnable(GL_DEPTH_TEST); glEnable(GL_STENCIL_TEST);
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE); glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
``` ```