Skip to content
Snippets Groups Projects
Verified Commit fb437a3c authored by Vlad Doc's avatar Vlad Doc
Browse files

white space fix

parent 66a5b2f2
Branches
Tags
No related merge requests found
...@@ -468,7 +468,6 @@ static char* HWR_PrependVersionDirective(const char* source, UINT32 version_inde ...@@ -468,7 +468,6 @@ static char* HWR_PrependVersionDirective(const char* source, UINT32 version_inde
const UINT32 source_len = strlen(source); const UINT32 source_len = strlen(source);
char* result = Z_Malloc(source_len + version_len + 1, PU_STATIC, NULL); char* result = Z_Malloc(source_len + version_len + 1, PU_STATIC, NULL);
strcpy(result, version_directives[version_index]); strcpy(result, version_directives[version_index]);
strcpy(result + version_len, source); strcpy(result + version_len, source);
...@@ -514,6 +513,7 @@ static void HWR_TryToCompileShaderWithImplicitVersion(INT32 shader_index, INT32 ...@@ -514,6 +513,7 @@ static void HWR_TryToCompileShaderWithImplicitVersion(INT32 shader_index, INT32
if(!vert_shader_version_exists) { if(!vert_shader_version_exists) {
// first time reallocation would have to be made // first time reallocation would have to be made
if(i == 0) { if(i == 0) {
void* old = (void*)gl_shaders[shader_index].vertex; void* old = (void*)gl_shaders[shader_index].vertex;
vert_shader = gl_shaders[shader_index].vertex = HWR_PrependVersionDirective(vert_shader, i); vert_shader = gl_shaders[shader_index].vertex = HWR_PrependVersionDirective(vert_shader, i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment