switched cafeLog_logLine() with cemuLog_log()

This commit is contained in:
JP-Carr 2023-03-25 16:22:30 +00:00 committed by Exzap
parent 18a266155f
commit a7f6043205
3 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ bool gxShader_checkIfSuccessfullyLinked(GLuint glProgram)
glGetProgramInfoLog(glProgram, std::min(tempLength, infoLogLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog); glGetProgramInfoLog(glProgram, std::min(tempLength, infoLogLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog);
infoLog[tempLength] = '\0'; infoLog[tempLength] = '\0';
forceLog_printf("Link error in raw shader"); forceLog_printf("Link error in raw shader");
cafeLog_logLine(LOG_TYPE_FORCE, infoLog); cemuLog_log(LogType::Force, infoLog);
return false; return false;
} }

View file

@ -193,7 +193,7 @@ bool RendererShaderGL::WaitForCompiled()
glGetShaderInfoLog(m_shader_object, std::min(infoLogLength, tempLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog); glGetShaderInfoLog(m_shader_object, std::min(infoLogLength, tempLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog);
infoLog[tempLength] = '\0'; infoLog[tempLength] = '\0';
forceLog_printf("Compile error in shader. Log:", infoLog); forceLog_printf("Compile error in shader. Log:", infoLog);
cafeLog_logLine(LOG_TYPE_FORCE, infoLog); cemuLog_log(LogType::Force, infoLog);
} }
if (m_shader_object != 0) if (m_shader_object != 0)
glDeleteShader(m_shader_object); glDeleteShader(m_shader_object);
@ -213,7 +213,7 @@ bool RendererShaderGL::WaitForCompiled()
glGetProgramInfoLog(m_program, std::min(infoLogLength, tempLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog); glGetProgramInfoLog(m_program, std::min(infoLogLength, tempLength), (GLsizei*)&tempLength, (GLcharARB*)infoLog);
infoLog[tempLength] = '\0'; infoLog[tempLength] = '\0';
forceLog_printf("Link error in shader. Log:", infoLog); forceLog_printf("Link error in shader. Log:", infoLog);
cafeLog_logLine(LOG_TYPE_FORCE, infoLog); cemuLog_log(LogType::Force, infoLog);
} }
m_isCompiled = true; m_isCompiled = true;
return false; return false;

View file

@ -80,7 +80,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL DebugUtilsCallback(VkDebugUtilsMessageSeverityFla
#endif #endif
cafeLog_logLine(LOG_TYPE_FORCE, (char*)pCallbackData->pMessage); cemuLog_log(LogType::Force, (char*)pCallbackData->pMessage);
return VK_FALSE; return VK_FALSE;
} }