diff options
author | marha <marha@users.sourceforge.net> | 2013-11-08 11:47:30 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2013-11-08 11:47:30 +0100 |
commit | c8483dc2831dc37d93a36804022f6b064f5962ea (patch) | |
tree | 599f145a848e10b75a1a8c314ed9c51031446506 /xorg-server/glx/render2.c | |
parent | c97d11aec40d8fa07d6b456bf8694133a77d35f4 (diff) | |
download | vcxsrv-c8483dc2831dc37d93a36804022f6b064f5962ea.tar.gz vcxsrv-c8483dc2831dc37d93a36804022f6b064f5962ea.tar.bz2 vcxsrv-c8483dc2831dc37d93a36804022f6b064f5962ea.zip |
Solved compilation and link problems after last merge
Diffstat (limited to 'xorg-server/glx/render2.c')
-rwxr-xr-x[-rw-r--r--] | xorg-server/glx/render2.c | 69 |
1 files changed, 40 insertions, 29 deletions
diff --git a/xorg-server/glx/render2.c b/xorg-server/glx/render2.c index b3c92c6f1..01e33d5c9 100644..100755 --- a/xorg-server/glx/render2.c +++ b/xorg-server/glx/render2.c @@ -37,6 +37,10 @@ #include "unpack.h" #include "indirect_size.h" #include "indirect_dispatch.h" +#include "glapitable.h" +#include "glapi.h" +#include "glthread.h" +#include "dispatch.h" void __glXDisp_Map1f(GLbyte * pc) @@ -52,7 +56,7 @@ __glXDisp_Map1f(GLbyte * pc) points = (GLfloat *) (pc + 16); k = __glMap1f_size(target); - glMap1f(target, u1, u2, k, order, points); + CALL_Map1f(GET_DISPATCH(), (target, u1, u2, k, order, points)); } void @@ -75,7 +79,9 @@ __glXDisp_Map2f(GLbyte * pc) ustride = vorder * k; vstride = k; - glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); + CALL_Map2f(GET_DISPATCH(), + (target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, + points)); } void @@ -121,7 +127,7 @@ __glXDisp_Map1d(GLbyte * pc) #else points = (GLdouble *) pc; #endif - glMap1d(target, u1, u2, k, order, points); + CALL_Map1d(GET_DISPATCH(), (target, u1, u2, k, order, points)); } void @@ -173,7 +179,9 @@ __glXDisp_Map2d(GLbyte * pc) #else points = (GLdouble *) pc; #endif - glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points); + CALL_Map2d(GET_DISPATCH(), + (target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, + points)); } void @@ -208,36 +216,39 @@ __glXDisp_DrawArrays(GLbyte * pc) switch (component) { case GL_VERTEX_ARRAY: - glEnableClientState(GL_VERTEX_ARRAY); - glVertexPointer(numVals, datatype, stride, pc); + CALL_EnableClientState(GET_DISPATCH(), (GL_VERTEX_ARRAY)); + CALL_VertexPointer(GET_DISPATCH(), (numVals, datatype, stride, pc)); break; case GL_NORMAL_ARRAY: - glEnableClientState(GL_NORMAL_ARRAY); - glNormalPointer(datatype, stride, pc); + CALL_EnableClientState(GET_DISPATCH(), (GL_NORMAL_ARRAY)); + CALL_NormalPointer(GET_DISPATCH(), (datatype, stride, pc)); break; case GL_COLOR_ARRAY: - glEnableClientState(GL_COLOR_ARRAY); - glColorPointer(numVals, datatype, stride, pc); + CALL_EnableClientState(GET_DISPATCH(), (GL_COLOR_ARRAY)); + CALL_ColorPointer(GET_DISPATCH(), (numVals, datatype, stride, pc)); break; case GL_INDEX_ARRAY: - glEnableClientState(GL_INDEX_ARRAY); - glIndexPointer(datatype, stride, pc); + CALL_EnableClientState(GET_DISPATCH(), (GL_INDEX_ARRAY)); + CALL_IndexPointer(GET_DISPATCH(), (datatype, stride, pc)); break; case GL_TEXTURE_COORD_ARRAY: - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - glTexCoordPointer(numVals, datatype, stride, pc); + CALL_EnableClientState(GET_DISPATCH(), (GL_TEXTURE_COORD_ARRAY)); + CALL_TexCoordPointer(GET_DISPATCH(), + (numVals, datatype, stride, pc)); break; case GL_EDGE_FLAG_ARRAY: - glEnableClientState(GL_EDGE_FLAG_ARRAY); - glEdgeFlagPointer(stride, (const GLboolean *) pc); + CALL_EnableClientState(GET_DISPATCH(), (GL_EDGE_FLAG_ARRAY)); + CALL_EdgeFlagPointer(GET_DISPATCH(), + (stride, (const GLboolean *) pc)); break; case GL_SECONDARY_COLOR_ARRAY: - glEnableClientState(GL_SECONDARY_COLOR_ARRAY); - glSecondaryColorPointerEXT(numVals, datatype, stride, pc); + CALL_EnableClientState(GET_DISPATCH(), (GL_SECONDARY_COLOR_ARRAY)); + CALL_SecondaryColorPointer(GET_DISPATCH(), + (numVals, datatype, stride, pc)); break; case GL_FOG_COORD_ARRAY: - glEnableClientState(GL_FOG_COORD_ARRAY); - glFogCoordPointerEXT(datatype, stride, pc); + CALL_EnableClientState(GET_DISPATCH(), (GL_FOG_COORD_ARRAY)); + CALL_FogCoordPointer(GET_DISPATCH(), (datatype, stride, pc)); break; default: break; @@ -246,15 +257,15 @@ __glXDisp_DrawArrays(GLbyte * pc) pc += __GLX_PAD(numVals * __glXTypeSize(datatype)); } - glDrawArrays(primType, 0, numVertexes); + CALL_DrawArrays(GET_DISPATCH(), (primType, 0, numVertexes)); /* turn off anything we might have turned on */ - glDisableClientState(GL_VERTEX_ARRAY); - glDisableClientState(GL_NORMAL_ARRAY); - glDisableClientState(GL_COLOR_ARRAY); - glDisableClientState(GL_INDEX_ARRAY); - glDisableClientState(GL_TEXTURE_COORD_ARRAY); - glDisableClientState(GL_EDGE_FLAG_ARRAY); - glDisableClientState(GL_SECONDARY_COLOR_ARRAY); - glDisableClientState(GL_FOG_COORD_ARRAY); + CALL_DisableClientState(GET_DISPATCH(), (GL_VERTEX_ARRAY)); + CALL_DisableClientState(GET_DISPATCH(), (GL_NORMAL_ARRAY)); + CALL_DisableClientState(GET_DISPATCH(), (GL_COLOR_ARRAY)); + CALL_DisableClientState(GET_DISPATCH(), (GL_INDEX_ARRAY)); + CALL_DisableClientState(GET_DISPATCH(), (GL_TEXTURE_COORD_ARRAY)); + CALL_DisableClientState(GET_DISPATCH(), (GL_EDGE_FLAG_ARRAY)); + CALL_DisableClientState(GET_DISPATCH(), (GL_SECONDARY_COLOR_ARRAY)); + CALL_DisableClientState(GET_DISPATCH(), (GL_FOG_COORD_ARRAY)); } |