Advertisement
Guest User

Untitled

a guest
Dec 20th, 2017
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. diff --git lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp
  2. index 5ee1d36..5180461 100644
  3. --- lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp
  4. +++ lib/irrlicht/source/Irrlicht/CIrrDeviceLinux.cpp
  5. @@ -905,7 +905,7 @@ bool CIrrDeviceLinux::createWindow()
  6.  
  7. visTempl.screen = screennr;
  8. // ARGB visuals should be avoided for usual applications
  9. - visTempl.depth = CreationParams.WithAlphaChannel?32:24;
  10. + visTempl.depth = 32;
  11. while ((!visual) && (visTempl.depth>=16))
  12. {
  13. visual = XGetVisualInfo(display, VisualScreenMask|VisualDepthMask,
  14. diff --git src/graphics/graphics_restrictions.cpp src/graphics/graphics_restrictions.cpp
  15. index 176d8b1..4454b38 100644
  16. --- src/graphics/graphics_restrictions.cpp
  17. +++ src/graphics/graphics_restrictions.cpp
  18. @@ -191,6 +191,18 @@ public:
  19. }
  20. }
  21.  
  22. + // Mali-T628 (ODROID XU3/XU4/XU4Q) card: driver version = "OpenGL ES 3.1 v1.r17p0-01rel0.a881d28363cdb20f0017ed13c980967e"
  23. + // ---------------------------------------------------------
  24. + if (StringUtils::startsWith(card_name, "Mali"))
  25. + {
  26. + std::vector<std::string> s = StringUtils::split(driver_version, ' ');
  27. + if (s.size() >= 3)
  28. + {
  29. + convertVersionString(s[2]);
  30. + return;
  31. + }
  32. + }
  33. +
  34. // Nvidia: driver_version = "4.3.0 NVIDIA 340.58"
  35. // ----------------------------------------------
  36. if (driver_version.find("NVIDIA") != std::string::npos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement