From edadcb5d31146972f68f4099bf11987250f59b7a Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Fri, 28 Dec 2018 20:56:39 -0500 Subject: [PATCH] The block_shader_program is now generated on initialization --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 3913f6a..bf565c7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -108,6 +108,10 @@ int main(int argc, char** argv) GLuint block_texture_array = mc_load_block_texture_array(); + // Load the block shader program. + + GLuint block_shader_program = mc_load_program("../glsl/block_vertex.glsl", "../glsl/block_fragment.glsl"); + // Create variables to represent the position of the mouse pointer, and // state of the mouse buttons.