From 3d4f545fd79aeb833fd649ec690acce89600cfd9 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Thu, 12 Mar 2015 11:38:10 -0700 Subject: [PATCH] remove unused gl_fragColor support --- stb_voxel_render.h | 4 ++-- tests/caveview/cave_render.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/stb_voxel_render.h b/stb_voxel_render.h index f0b4563..80d1f4e 100644 --- a/stb_voxel_render.h +++ b/stb_voxel_render.h @@ -294,7 +294,7 @@ extern void stbvox_reset_buffers(stbvox_mesh_maker *mm); extern void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len); extern void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1); extern void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y_stride_in_bytes); -extern void stbvox_config_use_gl(stbvox_mesh_maker *mm, int use_tex_buffer, int use_gl_modelview, int use_gl_fragment); +extern void stbvox_config_use_gl(stbvox_mesh_maker *mm, int use_tex_buffer, int use_gl_modelview); extern void stbvox_config_set_z_precision(stbvox_mesh_maker *mm, int z_fractional_bits); extern stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm); extern int stbvox_get_vertex_shader(stbvox_mesh_maker *mm, char *buffer, size_t buffer_size); @@ -2128,7 +2128,7 @@ void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y // this is designed to allow you to call it multiple times to change the mode // in case you're using multiple variants for different purposes -void stbvox_config_use_gl(stbvox_mesh_maker *mm, int use_tex_buffer, int use_gl_modelview, int use_gl_fragment) +void stbvox_config_use_gl(stbvox_mesh_maker *mm, int use_tex_buffer, int use_gl_modelview) { mm->config_dirty = 1; diff --git a/tests/caveview/cave_render.c b/tests/caveview/cave_render.c index e736573..1381791 100644 --- a/tests/caveview/cave_render.c +++ b/tests/caveview/cave_render.c @@ -359,10 +359,10 @@ void render_init(void) unsigned char *texdata = stbi_load("terrain.png", &w, &h, NULL, 4); stbvox_init_mesh_maker(&g_mesh_maker); - stbvox_config_use_gl(&g_mesh_maker, 1, 1, 1); + stbvox_config_use_gl(&g_mesh_maker, 1, 1); for (i=0; i < num_mesh_workers; ++i) { stbvox_init_mesh_maker(&mesh_data[i].rm.mm); - stbvox_config_use_gl(&mesh_data[i].rm.mm, 1,1,1); + stbvox_config_use_gl(&mesh_data[i].rm.mm, 1,1); } vertex_len = stbvox_get_vertex_shader(&g_mesh_maker, vertex, sizeof(vertex));