mirror of https://github.com/PCSX2/pcsx2.git
common-ogl: Fix Shader compiled with warnings log spam on gl.
Observed on intel igpu.
This commit is contained in:
parent
ddd2ea5f4d
commit
d9f4bc70fb
|
@ -60,7 +60,10 @@ namespace GL
|
||||||
GLint info_log_length = 0;
|
GLint info_log_length = 0;
|
||||||
glGetShaderiv(id, GL_INFO_LOG_LENGTH, &info_log_length);
|
glGetShaderiv(id, GL_INFO_LOG_LENGTH, &info_log_length);
|
||||||
|
|
||||||
if (status == GL_FALSE || info_log_length > 0)
|
// Log will create a new line when there are no warnings so let's set a minimum log length of 1.
|
||||||
|
constexpr int info_log_min_length = 1;
|
||||||
|
|
||||||
|
if (status == GL_FALSE || info_log_length > info_log_min_length)
|
||||||
{
|
{
|
||||||
std::string info_log;
|
std::string info_log;
|
||||||
info_log.resize(info_log_length + 1);
|
info_log.resize(info_log_length + 1);
|
||||||
|
|
Loading…
Reference in New Issue