projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.32.tar.gz
[xscreensaver]
/
hacks
/
glx
/
jwzgles.c
diff --git
a/hacks/glx/jwzgles.c
b/hacks/glx/jwzgles.c
index 094192c76ba61cc2feaba1d6d751ea2460e4ab9d..ff915a021064510f2f10bbf5ce3d507fb11e363a 100644
(file)
--- a/
hacks/glx/jwzgles.c
+++ b/
hacks/glx/jwzgles.c
@@
-3977,6
+3977,15
@@
jwzgles_gluProject (GLdouble objx, GLdouble objy, GLdouble objz,
}
}
+void jwzgles_glViewport (GLuint x, GLuint y, GLuint w, GLuint h)
+{
+# if TARGET_IPHONE_SIMULATOR
+/* fprintf (stderr, "glViewport %dx%d\n", w, h); */
+# endif
+ glViewport (x, y, w, h); /* the real one */
+}
+
+
/* The following functions are present in both OpenGL 1.1 and in OpenGLES 1,
but are allowed within glNewList/glEndList, so we must wrap them to allow
them to either be recorded in lists, or run directly.
/* The following functions are present in both OpenGL 1.1 and in OpenGLES 1,
but are allowed within glNewList/glEndList, so we must wrap them to allow
them to either be recorded in lists, or run directly.
@@
-4143,7
+4152,6
@@
WRAP (glStencilOp, III)
WRAP (glTexEnvf, IIF)
WRAP (glTexEnvi, III)
WRAP (glTranslatef, FFF)
WRAP (glTexEnvf, IIF)
WRAP (glTexEnvi, III)
WRAP (glTranslatef, FFF)
-WRAP (glViewport, IIII)
#undef TYPE_IV
#define TYPE_IV GLuint
WRAP (glDeleteTextures, IIV)
#undef TYPE_IV
#define TYPE_IV GLuint
WRAP (glDeleteTextures, IIV)