summaryrefslogtreecommitdiff
path: root/src/gl/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl/gl.c')
-rw-r--r--src/gl/gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gl/gl.c b/src/gl/gl.c
index 8f56d33..c4502dc 100644
--- a/src/gl/gl.c
+++ b/src/gl/gl.c
@@ -21,6 +21,7 @@ int gl_get_error(lua_State *L);
void setup_gl(lua_State *L, int honey_index)
{
int data_types = hs_create_table(L,
+ hs_str_int("uchar", GL_UNSIGNED_BYTE),
hs_str_int("uint", GL_UNSIGNED_INT),
hs_str_int("int", GL_INT),
hs_str_int("float", GL_FLOAT),
@@ -48,6 +49,7 @@ void setup_gl(lua_State *L, int honey_index)
setup_shader(L, gl_index);
setup_drawing(L, gl_index);
setup_data(L, gl_index);
+ setup_texture(L, gl_index);
lua_setfield(L, honey_index, "gl");
}