mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-23 07:30:40 +00:00
Fix OpenGL screenshots with unaligned widths such as 1366
git-svn-id: https://svn.eduke32.com/eduke32@2579 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
223cc81373
commit
17d91781c5
3 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue