mayanbin06 / quake2-gwt-port

Automatically exported from code.google.com/p/quake2-gwt-port
GNU General Public License v2.0
0 stars 0 forks source link

Doesn't work with current chrome #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This patch makes it work again:

diff -r 2df6c64fb9b4 src/jake2/gwt/client/WebGLAdapter.java
--- a/src/jake2/gwt/client/WebGLAdapter.java    Wed Aug 25 14:33:48 2010 +0200
+++ b/src/jake2/gwt/client/WebGLAdapter.java    Mon Oct 04 21:54:48 2010 -0700
@@ -398,11 +398,7 @@
   @Override
   public String glGetString(int id) {
      String s;
-     if (GwtQuake.getBrowserType() == BrowserType.FIREFOX) {
-         s = gl.glGetParameter(id);
-     } else {
-         s = gl.glGetString(id);
-     }
+          s = gl.glGetParameter(id);
      // Hack to meet more desktop GL expectations to some extent
      return s == null ? "" : s;
   }

(This also makes gwtquake webgl standards-compliant.)

Original issue reported on code.google.com by thakis@google.com on 5 Oct 2010 at 4:55

GoogleCodeExporter commented 8 years ago
Cleared out glGetString implementation

Original comment by stefan.haustein on 11 Oct 2011 at 6:39