shrink fixed-size internal GLSL string buffers

We concatenate #defines and #extensions into these, and can count the max string lengths needed. 256 is enough to hold today's strings; we can adjust later if needed.
This commit is contained in:
Mike Erwin
2017-04-07 13:28:42 -04:00
parent 1a156f7103
commit 3f6d25f4eb

View File

@@ -42,9 +42,9 @@
#include "gpu_shader_private.h"
/* TODO(sergey): Find better default values for this constants. */
#define MAX_DEFINE_LENGTH 1024
#define MAX_EXT_DEFINE_LENGTH 1024
/* Adjust these constants as needed. */
#define MAX_DEFINE_LENGTH 256
#define MAX_EXT_DEFINE_LENGTH 256
/* Non-generated shaders */
extern char datatoc_gpu_shader_depth_only_frag_glsl[];