Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp
- index 5ee1d36..5180461 100644
- --- lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp
- +++ lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp
- @@ -905,7 +905,7 @@ bool CIrrDeviceLinux::createWindow()
- visTempl.screen = screennr;
- // ARGB visuals should be avoided for usual applications
- - visTempl.depth = CreationParams.WithAlphaChannel?32:24;
- + visTempl.depth = 32;
- while ((!visual) && (visTempl.depth>=16))
- {
- visual = XGetVisualInfo(display, VisualScreenMask|VisualDepthMask,
- diff --git src/graphics/graphics_restrictions.cpp src/graphics/graphics_restrictions.cpp
- index 176d8b1..4454b38 100644
- --- src/graphics/graphics_restrictions.cpp
- +++ src/graphics/graphics_restrictions.cpp
- @@ -191,6 +191,18 @@ public:
- }
- }
- + // Mali-T628 (ODROID XU3/XU4/XU4Q) card: driver version = "OpenGL ES 3.1 v1.r17p0-01rel0.a881d28363cdb20f0017ed13c980967e"
- + // ---------------------------------------------------------
- + if (StringUtils::startsWith(card_name, "Mali"))
- + {
- + std::vector<std::string> s = StringUtils::split(driver_version, ' ');
- + if (s.size() >= 3)
- + {
- + convertVersionString(s[2]);
- + return;
- + }
- + }
- +
- // Nvidia: driver_version = "4.3.0 NVIDIA 340.58"
- // ----------------------------------------------
- if (driver_version.find("NVIDIA") != std::string::npos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement