From 0a29de84c20a4501ea828abcfea5462fe03239c3 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 12 Jul 2007 16:59:14 +0000 Subject: [PATCH] oops! fix string detection --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 61dff850bc..212b018b2f 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -572,8 +572,8 @@ reset() { _supports_multitexture = false; _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 // be installed by default on every Linux implementation, has // real problems rendering with vertex arrays. Therefore,