shithub: cstory

Download patch

ref: 0fa538732d44ffd43627663f54e40a17ad0bf4b9
parent: b065882f24dcffdd06492e1a9b11e1a9168846e5
author: Clownacy <Clownacy@users.noreply.github.com>
date: Thu Sep 10 13:48:21 EDT 2020

Use PrintError instead of ShowMessageBox

--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -261,9 +261,9 @@
 	glGetShaderiv(vertex_shader, GL_COMPILE_STATUS, &shader_status);
 	if (shader_status != GL_TRUE)
 	{
-		char buffer[0x200];
+		char buffer[0x400];
 		glGetShaderInfoLog(vertex_shader, sizeof(buffer), NULL, buffer);
-		Backend_ShowMessageBox("Vertex shader error", buffer);
+		Backend_PrintError("Vertex shader error: %s", buffer);
 		return 0;
 	}
 
@@ -279,7 +279,7 @@
 	{
 		char buffer[0x400];
 		glGetShaderInfoLog(fragment_shader, sizeof(buffer), NULL, buffer);
-		Backend_ShowMessageBox("Fragment shader error", buffer);
+		Backend_PrintError("Fragment shader error: %s", buffer);
 		return 0;
 	}
 
@@ -296,7 +296,7 @@
 	{
 		char buffer[0x400];
 		glGetProgramInfoLog(program_id, sizeof(buffer), NULL, buffer);
-		Backend_ShowMessageBox("Shader linker error", buffer);
+		Backend_PrintError("Shader linker error: %s", buffer);
 		return 0;
 	}