diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-10-12 22:32:26 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-10-12 22:32:26 +0400 |
commit | 84cf941c291de2c3d03f3125bc29de907d47f56c (patch) | |
tree | e30c3189632846541736dca657aaae71ba02bd23 /source/creator | |
parent | 1a92054d574dca4b08d3c5c3023c75680adbf628 (diff) |
Added a -noglsl option to disable GLSL from the command line.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c index ab86c46dbdd..38c37575bd1 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -77,6 +77,7 @@ #include "RE_pipeline.h" #include "GPU_draw.h" +#include "GPU_extensions.h" #include "playanim_ext.h" #include "mydevice.h" @@ -220,6 +221,7 @@ static void print_help(void) printf (" -d\t\tTurn debugging on\n"); printf (" -noaudio\tDisable audio on systems that support audio\n"); printf (" -nojoystick\tDisable joystick support\n"); + printf (" -noglsl\tDisable GLSL shading\n"); printf (" -h\t\tPrint this help text\n"); printf (" -y\t\tDisable automatic python script execution (scriptlinks, pydrivers, pyconstraints, pynodes)\n"); printf (" -P <filename>\tRun the given Python script (filename or Blender Text)\n"); @@ -506,6 +508,8 @@ int main(int argc, char **argv) SYS_WriteCommandLineInt(syshandle,"nojoystick",1); if (G.f & G_DEBUG) printf("disabling nojoystick\n"); } + if (BLI_strcasecmp(argv[a], "-noglsl") == 0) + GPU_extensions_disable(); break; } } |