gles fixes
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5422 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
5c069300ed
commit
3d86dc56ac
2 changed files with 5 additions and 2 deletions
|
@ -58,6 +58,7 @@ const GLubyte * (APIENTRY *qglGetString) (GLenum name);
|
||||||
void (APIENTRY *qglHint) (GLenum target, GLenum mode);
|
void (APIENTRY *qglHint) (GLenum target, GLenum mode);
|
||||||
GLboolean (APIENTRY *qglIsEnabled) (GLenum cap);
|
GLboolean (APIENTRY *qglIsEnabled) (GLenum cap);
|
||||||
void (APIENTRY *qglPolygonOffset) (GLfloat factor, GLfloat units);
|
void (APIENTRY *qglPolygonOffset) (GLfloat factor, GLfloat units);
|
||||||
|
void (APIENTRY *qglLineWidth) (GLfloat width);
|
||||||
void (APIENTRY *qglReadPixels) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
|
void (APIENTRY *qglReadPixels) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
|
||||||
void (APIENTRY *qglTexImage2D) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
void (APIENTRY *qglTexImage2D) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
|
||||||
void (APIENTRY *qglTexSubImage2D) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
|
void (APIENTRY *qglTexSubImage2D) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
|
||||||
|
@ -170,7 +171,6 @@ void (APIENTRY *qglMultMatrixf) (const GLfloat *m);
|
||||||
void (APIENTRY *qglNewList) (GLuint list, GLenum mode);
|
void (APIENTRY *qglNewList) (GLuint list, GLenum mode);
|
||||||
//void (APIENTRY *qglOrtho) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
|
//void (APIENTRY *qglOrtho) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
|
||||||
void (APIENTRY *qglPolygonMode) (GLenum face, GLenum mode);
|
void (APIENTRY *qglPolygonMode) (GLenum face, GLenum mode);
|
||||||
void (APIENTRY *qglLineWidth) (GLfloat width);
|
|
||||||
void (APIENTRY *qglPopMatrix) (void);
|
void (APIENTRY *qglPopMatrix) (void);
|
||||||
void (APIENTRY *qglPushMatrix) (void);
|
void (APIENTRY *qglPushMatrix) (void);
|
||||||
void (APIENTRY *qglReadBuffer) (GLenum mode);
|
void (APIENTRY *qglReadBuffer) (GLenum mode);
|
||||||
|
@ -3201,6 +3201,7 @@ qboolean GL_Init(rendererstate_t *info, void *(*getglfunction) (char *name))
|
||||||
qglStencilFunc = (void *)getglcore("glStencilFunc");
|
qglStencilFunc = (void *)getglcore("glStencilFunc");
|
||||||
qglScissor = (void *)getglcore("glScissor");
|
qglScissor = (void *)getglcore("glScissor");
|
||||||
qglPolygonOffset = (void *)getglext("glPolygonOffset");
|
qglPolygonOffset = (void *)getglext("glPolygonOffset");
|
||||||
|
qglLineWidth = (void *)getglcore("glLineWidth");
|
||||||
#endif
|
#endif
|
||||||
#ifndef FTE_TARGET_WEB
|
#ifndef FTE_TARGET_WEB
|
||||||
qglAlphaFunc = (void *)getglcore("glAlphaFunc");
|
qglAlphaFunc = (void *)getglcore("glAlphaFunc");
|
||||||
|
@ -3229,7 +3230,6 @@ qboolean GL_Init(rendererstate_t *info, void *(*getglfunction) (char *name))
|
||||||
qglMultMatrixf = (void *)getglcore("glMultMatrixf");
|
qglMultMatrixf = (void *)getglcore("glMultMatrixf");
|
||||||
// qglOrtho = (void *)getglcore("glOrtho");
|
// qglOrtho = (void *)getglcore("glOrtho");
|
||||||
qglPolygonMode = (void *)getglcore("glPolygonMode");
|
qglPolygonMode = (void *)getglcore("glPolygonMode");
|
||||||
qglLineWidth = (void *)getglcore("glLineWidth");
|
|
||||||
qglPopMatrix = (void *)getglcore("glPopMatrix");
|
qglPopMatrix = (void *)getglcore("glPopMatrix");
|
||||||
qglPushMatrix = (void *)getglcore("glPushMatrix");
|
qglPushMatrix = (void *)getglcore("glPushMatrix");
|
||||||
qglReadBuffer = (void *)getglcore("glReadBuffer");
|
qglReadBuffer = (void *)getglcore("glReadBuffer");
|
||||||
|
|
|
@ -932,6 +932,9 @@ typedef void (APIENTRY * PFNGLUNLOCKARRAYSEXTPROC) (void);
|
||||||
#define GL_LUMINANCE8_ALPHA8 0x8045 //not in gles2, nor gl3core (use gl_red+swizzles for gles3)
|
#define GL_LUMINANCE8_ALPHA8 0x8045 //not in gles2, nor gl3core (use gl_red+swizzles for gles3)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef GL_LINE
|
||||||
|
#define GL_LINE 0x1B01
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef GL_SAMPLES_PASSED_ARB
|
#ifndef GL_SAMPLES_PASSED_ARB
|
||||||
#define GL_SAMPLES_PASSED_ARB 0x8914
|
#define GL_SAMPLES_PASSED_ARB 0x8914
|
||||||
|
|
Loading…
Reference in a new issue