diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/llrender/llvertexprogramgl.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/llrender/llvertexprogramgl.cpp')
-rw-r--r-- | linden/indra/llrender/llvertexprogramgl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linden/indra/llrender/llvertexprogramgl.cpp b/linden/indra/llrender/llvertexprogramgl.cpp index bc00a64..4ccdf01 100644 --- a/linden/indra/llrender/llvertexprogramgl.cpp +++ b/linden/indra/llrender/llvertexprogramgl.cpp | |||
@@ -92,13 +92,13 @@ BOOL LLVertexProgramGL::load(const char * filename) | |||
92 | line_num++; | 92 | line_num++; |
93 | next_token = strchr(next_token, '\n'); | 93 | next_token = strchr(next_token, '\n'); |
94 | } | 94 | } |
95 | char output[1024]; | ||
96 | char bad_code[11]; | 95 | char bad_code[11]; |
97 | strncpy(bad_code, text_buffer + error_pos, 10); | 96 | strncpy(bad_code, text_buffer + error_pos, 10); |
98 | bad_code[10] = '\0'; | 97 | bad_code[10] = '\0'; |
99 | 98 | ||
100 | sprintf(output, "%s(%d): Vertex Program Error: %s at (%s)\n", filename, line_num, program_error_string, bad_code); | 99 | llerrs << filename << "(" << line_num << "): Vertex Program Error: " |
101 | gErrorStream << output << std::endl; | 100 | << program_error_string << " at (" << bad_code<< ")" |
101 | << llendl; | ||
102 | // clean up buffer | 102 | // clean up buffer |
103 | delete[] text_buffer; | 103 | delete[] text_buffer; |
104 | return FALSE; | 104 | return FALSE; |