projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Notices & clean
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_water.h
diff --git
a/world_water.h
b/world_water.h
index 11d9594d6fada5c0729b066d172db2cb7467b73a..249800d3569725c608e775c9215d293f0e0a5b33 100644
(file)
--- a/
world_water.h
+++ b/
world_water.h
@@
-1,3
+1,7
@@
+/*
+ * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved
+ */
+
#ifndef WATER_H
#define WATER_H
#ifndef WATER_H
#define WATER_H
@@
-26,28
+30,20
@@
wrender =
.fbdepth = { .format = GL_RGBA, .div = 4 }
};
.fbdepth = { .format = GL_RGBA, .div = 4 }
};
-static
int
world_water_init(void)
+static
void
world_water_init(void)
{
vg_info( "world_water_init\n" );
shader_water_register();
{
vg_info( "world_water_init\n" );
shader_water_register();
- if( vg_acquire_thread_sync(1) )
+ vg_acquire_thread_sync();
{
{
- if( !fb_init( &wrender.fbreflect ) ||
- !fb_init( &wrender.fbdepth ) )
- {
- vg_release_thread_sync(1);
- return 0;
- }
+ fb_init( &wrender.fbreflect );
+ fb_init( &wrender.fbdepth );
vg_tex2d_init( (vg_tex2d *[]){&tex_water_surf}, 1 );
vg_tex2d_init( (vg_tex2d *[]){&tex_water_surf}, 1 );
-
vg_success( "done\n" );
vg_success( "done\n" );
- vg_release_thread_sync(1);
- return 1;
}
}
- else
- return 0;
+ vg_release_thread_sync();
}
static void world_water_free(void *_)
}
static void world_water_free(void *_)