link programs before getting uniform locations; add Widget#draw_rect; fix GL.draw_rect; store uniforms as GLint

This commit is contained in:
josh committed 2014-08-04 23:19:30 -04:00
1 parent 7cc541ed29
commit be8f71296f
4 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ void GL_Init()
{
ruby_module = rb_define_module("GL");
rb_define_singleton_method(ruby_module, "draw_rect",
(VALUE(*)(...))GL_draw_rect, 4);
(VALUE(*)(...))GL_draw_rect, 8);
}
static void load_gl_buffers()
+1 -1
View File
@@ -17,7 +17,7 @@ enum
struct GLProgram
{
GLuint id;
std::unordered_map<int, GLuint> uniforms;
std::unordered_map<int, GLint> uniforms;
};
void GLProgram_Init();