mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Use std::to_string for GL version numbers in shaders headers.
std::stringstream can't take number as input on Linux for unknown reason. This is GLideN64 problem, plain test application from http://www.cplusplus.com works correct.
This commit is contained in:
parent
50c0c38b63
commit
1d2aa4b96e
|
@ -197,13 +197,13 @@ public:
|
|||
}
|
||||
else if (_glinfo.isGLESX) {
|
||||
std::stringstream ss;
|
||||
ss << "#version " << _glinfo.majorVersion << _glinfo.minorVersion << "0 es " << std::endl;
|
||||
ss << "#version " << std::to_string(_glinfo.majorVersion) << std::to_string(_glinfo.minorVersion) << "0 es " << std::endl;
|
||||
ss << "# define IN in" << std::endl << "# define OUT out" << std::endl;
|
||||
m_part = ss.str();
|
||||
}
|
||||
else {
|
||||
std::stringstream ss;
|
||||
ss << "#version " << _glinfo.majorVersion << _glinfo.minorVersion << "0 core " << std::endl;
|
||||
ss << "#version " << std::to_string(_glinfo.majorVersion) << std::to_string(_glinfo.minorVersion) << "0 core " << std::endl;
|
||||
ss << "# define IN in" << std::endl << "# define OUT out" << std::endl;
|
||||
m_part = ss.str();
|
||||
}
|
||||
|
@ -423,14 +423,14 @@ public:
|
|||
}
|
||||
else if (_glinfo.isGLESX) {
|
||||
std::stringstream ss;
|
||||
ss << "#version " << _glinfo.majorVersion << _glinfo.minorVersion << "0 es " << std::endl;
|
||||
ss << "#version " << std::to_string(_glinfo.majorVersion) << std::to_string(_glinfo.minorVersion) << "0 es " << std::endl;
|
||||
ss << "# define IN in" << std::endl
|
||||
<< "# define OUT out" << std::endl
|
||||
<< "# define texture2D texture" << std::endl;
|
||||
m_part = ss.str();
|
||||
} else {
|
||||
std::stringstream ss;
|
||||
ss << "#version " << _glinfo.majorVersion << _glinfo.minorVersion << "0 core " << std::endl;
|
||||
ss << "#version " << std::to_string(_glinfo.majorVersion) << std::to_string(_glinfo.minorVersion) << "0 core " << std::endl;
|
||||
ss << "# define IN in" << std::endl
|
||||
<< "# define OUT out" << std::endl
|
||||
<< "# define texture2D texture" << std::endl;
|
||||
|
|
Loading…
Reference in New Issue
Block a user