Skip to content

Commit

Permalink
[celx] Use default GLSL program in gl.Begin
Browse files Browse the repository at this point in the history
  • Loading branch information
375gnu committed Jul 29, 2021
1 parent 1f286c6 commit 8153d2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/celscript/lua/celx_gl.cpp
Expand Up @@ -157,6 +157,7 @@ static int gl_Begin(lua_State* l)
CelxLua celx(l);
celx.checkArgs(1, 1, "One argument expected for gl.Begin()");
int i = (int)celx.safeGetNumber(1, WrongType, "argument 1 to gl.Begin must be a number", 0.0);
glUseProgram(0);
glBegin(i);
return 0;
}
Expand Down

0 comments on commit 8153d2b

Please sign in to comment.