فهرست منبع

oops! fix string detection

David Rose 18 سال پیش
والد
کامیت
0a29de84c2
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 2 - 2
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -572,8 +572,8 @@ reset() {
   _supports_multitexture = false;
   _supports_multitexture = false;
 
 
   _supports_vertex_arrays = true;
   _supports_vertex_arrays = true;
-  if (_gl_version.find("1.2 (1.5 Mesa 6.",0) >= 0) {
-    if (_gl_renderer.find(" Mesa ") >= 0) {
+  if (_gl_version.find("1.2 (1.5 Mesa 6.",0) != string::npos) {
+    if (_gl_renderer.find(" Mesa ") != string::npos) {
       // We suspect this particular version of Mesa, which appears to
       // We suspect this particular version of Mesa, which appears to
       // be installed by default on every Linux implementation, has
       // be installed by default on every Linux implementation, has
       // real problems rendering with vertex arrays.  Therefore,
       // real problems rendering with vertex arrays.  Therefore,