mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 01:45:36 +00:00
OS X: disable glTexStorage2D
because of OSG/driver issue
See http://forum.openscenegraph.org/viewtopic.php?p=65276#65276 for the details.
This commit is contained in:
parent
692a15a3df
commit
4e3bbe01b6
2 changed files with 8 additions and 0 deletions
|
@ -43,6 +43,10 @@ class Application : public QApplication
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#ifdef Q_OS_MAC
|
||||||
|
setenv("OSG_GL_TEXTURE_STORAGE", "OFF", 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// To allow background thread drawing in OSG
|
// To allow background thread drawing in OSG
|
||||||
|
|
|
@ -321,6 +321,10 @@ private:
|
||||||
|
|
||||||
int main(int argc, char**argv)
|
int main(int argc, char**argv)
|
||||||
{
|
{
|
||||||
|
#if defined(__APPLE__)
|
||||||
|
setenv("OSG_GL_TEXTURE_STORAGE", "OFF", 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Some objects used to redirect cout and cerr
|
// Some objects used to redirect cout and cerr
|
||||||
// Scope must be here, so this still works inside the catch block for logging exceptions
|
// Scope must be here, so this still works inside the catch block for logging exceptions
|
||||||
std::streambuf* cout_rdbuf = std::cout.rdbuf ();
|
std::streambuf* cout_rdbuf = std::cout.rdbuf ();
|
||||||
|
|
Loading…
Reference in a new issue