Fix shader parameter issues
This commit is contained in:
parent
595a2e80b9
commit
4f46f8bed0
|
@ -301,7 +301,7 @@ bool gfx_shader_resolve_parameters(config_file_t *conf,
|
||||||
/* Find all parameters in our shaders. */
|
/* Find all parameters in our shaders. */
|
||||||
for (i = 0; i < shader->passes; i++)
|
for (i = 0; i < shader->passes; i++)
|
||||||
{
|
{
|
||||||
char line[PATH_MAX];
|
char line[4096];
|
||||||
FILE *file = fopen(shader->pass[i].source.path, "r");
|
FILE *file = fopen(shader->pass[i].source.path, "r");
|
||||||
if (!file)
|
if (!file)
|
||||||
continue;
|
continue;
|
||||||
|
@ -338,7 +338,7 @@ bool gfx_shader_resolve_parameters(config_file_t *conf,
|
||||||
/* Read in parameters which override the defaults. */
|
/* Read in parameters which override the defaults. */
|
||||||
if (conf)
|
if (conf)
|
||||||
{
|
{
|
||||||
char parameters[PATH_MAX];
|
char parameters[4096];
|
||||||
char *save = NULL;
|
char *save = NULL;
|
||||||
const char *id;
|
const char *id;
|
||||||
|
|
||||||
|
@ -744,7 +744,7 @@ void gfx_shader_resolve_relative(struct gfx_shader *shader,
|
||||||
const char *ref_path)
|
const char *ref_path)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
char tmp_path[PATH_MAX];
|
char tmp_path[4096];
|
||||||
|
|
||||||
for (i = 0; i < shader->passes; i++)
|
for (i = 0; i < shader->passes; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue