(Menu) RGUI_MAX_SHADERS becomes GFX_MAX_SHADERS

This commit is contained in:
twinaphex 2014-03-30 17:35:22 +02:00
parent 064a0c87a0
commit b6484f80ab
2 changed files with 5 additions and 3 deletions

View File

@ -48,7 +48,9 @@ extern "C" {
#include "history.h"
#define RGUI_MAX_SHADERS 8
#ifndef GFX_MAX_SHADERS
#define GFX_MAX_SHADERS 16
#endif
typedef enum
{
@ -95,7 +97,7 @@ typedef enum
RGUI_SETTINGS_SHADER_0,
RGUI_SETTINGS_SHADER_0_FILTER,
RGUI_SETTINGS_SHADER_0_SCALE,
RGUI_SETTINGS_SHADER_LAST = RGUI_SETTINGS_SHADER_0_SCALE + (3 * (RGUI_MAX_SHADERS - 1)),
RGUI_SETTINGS_SHADER_LAST = RGUI_SETTINGS_SHADER_0_SCALE + (3 * (GFX_MAX_SHADERS - 1)),
RGUI_SETTINGS_SHADER_PRESET_SAVE,
// settings options are done here too

View File

@ -1638,7 +1638,7 @@ int menu_set_settings(void *data, unsigned setting, unsigned action)
case RGUI_ACTION_RIGHT:
case RGUI_ACTION_OK:
if (rgui->shader.passes < RGUI_MAX_SHADERS)
if (rgui->shader.passes < GFX_MAX_SHADERS)
{
rgui->shader.passes++;
rgui->need_refresh = true;