projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
port
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_render.c
diff --git
a/world_render.c
b/world_render.c
index 022556d068a558e75ace441a3ebf314691ea99a6..e6c709afb0d141438a9726256d4889cf06f74a46 100644
(file)
--- a/
world_render.c
+++ b/
world_render.c
@@
-25,7
+25,7
@@
static int ccmd_set_time( int argc, const char *argv[] ){
static void async_world_render_init( void *payload, u32 size )
{
vg_info( "Allocate uniform buffers\n" );
static void async_world_render_init( void *payload, u32 size )
{
vg_info( "Allocate uniform buffers\n" );
- for( int i=0; i<
4
; i++ ){
+ for( int i=0; i<
k_world_max
; i++ ){
world_instance *world = &world_static.instances[i];
world->ubo_bind_point = i;
world_instance *world = &world_static.instances[i];
world->ubo_bind_point = i;
@@
-39,7
+39,7
@@
static void async_world_render_init( void *payload, u32 size )
}
vg_info( "Allocate frame buffers\n" );
}
vg_info( "Allocate frame buffers\n" );
- for( int i=0; i<
4
; i++ ){
+ for( int i=0; i<
k_world_max
; i++ ){
world_instance *world = &world_static.instances[i];
struct framebuffer *fb = &world->heightmap;
world_instance *world = &world_static.instances[i];
struct framebuffer *fb = &world->heightmap;