projects
/
vg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d6575e
)
better low qual mode
author
hgn
<hgodden00@gmail.com>
Sun, 6 Nov 2022 07:10:24 +0000
(07:10 +0000)
committer
hgn
<hgodden00@gmail.com>
Sun, 6 Nov 2022 07:10:24 +0000
(07:10 +0000)
src/vg/vg.h
patch
|
blob
|
history
diff --git
a/src/vg/vg.h
b/src/vg/vg.h
index aee5808db1a0d208dea695cb1a4d6fdb0f57b6bf..61db7d6e0f83e802ee85f943f5932e84501de00b 100644
(file)
--- a/
src/vg/vg.h
+++ b/
src/vg/vg.h
@@
-412,12
+412,12
@@
VG_STATIC void vg_enter( int argc, char *argv[], const char *window_name )
vg.samples = VG_MAX( 0, VG_MIN( 8, atoi( arg ) ) );
}
vg.samples = VG_MAX( 0, VG_MIN( 8, atoi( arg ) ) );
}
- if(
(arg = vg_long_opt_arg( "use-libc-malloc" )
) )
+ if(
vg_long_opt( "use-libc-malloc"
) )
{
vg_mem.use_libc_malloc = atoi( arg );
}
{
vg_mem.use_libc_malloc = atoi( arg );
}
- if(
(arg = vg_long_opt_arg( "high-performance" )
) )
+ if(
vg_long_opt( "high-performance"
) )
{
vg.quality_profile = k_quality_profile_low;
}
{
vg.quality_profile = k_quality_profile_low;
}
@@
-427,14
+427,6
@@
VG_STATIC void vg_enter( int argc, char *argv[], const char *window_name )
vg_log_init();
vg_console_init();
vg_log_init();
vg_console_init();
- vg_convar_push( (struct vg_convar){
- .name = "vg_quality",
- .data = &vg.quality_profile,
- .data_type = k_convar_dtype_i32,
- .opt_i32 = { .min=0, .max=1, .clamp=1 },
- .persistent = 0
- });
-
glfwInit();
glfwWindowHint( GLFW_CONTEXT_VERSION_MAJOR, 3 );
glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 3 );
glfwInit();
glfwWindowHint( GLFW_CONTEXT_VERSION_MAJOR, 3 );
glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 3 );