diff --git a/polymer/eduke32/build/include/glbuild.h b/polymer/eduke32/build/include/glbuild.h index bc3128fd3..673480d98 100644 --- a/polymer/eduke32/build/include/glbuild.h +++ b/polymer/eduke32/build/include/glbuild.h @@ -120,6 +120,7 @@ extern void (APIENTRY * bglLightfv)( GLenum light, GLenum pname, const GLfloat * extern void (APIENTRY * bglReadPixels)( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ); extern void (APIENTRY * bglRasterPos4i)( GLint x, GLint y, GLint z, GLint w ); extern void (APIENTRY * bglDrawPixels)( GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels ); +extern void (APIENTRY * bglPixelStorei)( GLenum pname, GLint param ); // Texture mapping extern void (APIENTRY * bglTexEnvf)( GLenum target, GLenum pname, GLfloat param ); diff --git a/polymer/eduke32/build/src/glbuild.c b/polymer/eduke32/build/src/glbuild.c index 2073717ec..4fa555c9c 100644 --- a/polymer/eduke32/build/src/glbuild.c +++ b/polymer/eduke32/build/src/glbuild.c @@ -80,6 +80,7 @@ void (APIENTRY *bglLightfv)(GLenum light, GLenum pname, const GLfloat *params); void (APIENTRY *bglReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); void (APIENTRY *bglRasterPos4i)(GLint x, GLint y, GLint z, GLint w); void (APIENTRY *bglDrawPixels)(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +void (APIENTRY *bglPixelStorei)(GLenum pname, GLint param); // Texture mapping void (APIENTRY *bglTexEnvf)(GLenum target, GLenum pname, GLfloat param); @@ -433,6 +434,7 @@ int32_t loadgldriver(const char *driver) bglReadPixels = GETPROC("glReadPixels"); bglRasterPos4i = GETPROC("glRasterPos4i"); bglDrawPixels = GETPROC("glDrawPixels"); + bglPixelStorei = GETPROC("glPixelStorei"); // Texture mapping bglTexEnvf = GETPROC("glTexEnvf"); @@ -719,6 +721,7 @@ int32_t unloadgldriver(void) bglReadPixels = NULL; bglRasterPos4i = NULL; bglDrawPixels = NULL; + bglPixelStorei = NULL; // Texture mapping bglTexEnvf = NULL; diff --git a/polymer/eduke32/build/src/polymost.c b/polymer/eduke32/build/src/polymost.c index 83b65a552..2519abbb6 100644 --- a/polymer/eduke32/build/src/polymost.c +++ b/polymer/eduke32/build/src/polymost.c @@ -734,6 +734,8 @@ void polymost_glinit() bglBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); + bglPixelStorei(GL_PACK_ALIGNMENT, 1); + //bglHint(GL_LINE_SMOOTH_HINT, GL_NICEST); //bglEnable(GL_LINE_SMOOTH);