summaryrefslogtreecommitdiff
path: root/glx/render2swap.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-12-03 13:11:09 -0500
committerKeith Packard <keithp@keithp.com>2013-12-10 08:02:42 -0800
commit6b93e1f5ff39c6ac5b0d97d4245aeac9113eed8b (patch)
tree47216682c7a06e809657c7a705414ac936b81518 /glx/render2swap.c
parentc4567a376083eb7b142a7f003ddf8372d376ea86 (diff)
glx: Convert non-generated function pointer thunking
Same concept as the generated code conversion. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Diffstat (limited to 'glx/render2swap.c')
-rw-r--r--glx/render2swap.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/glx/render2swap.c b/glx/render2swap.c
index e6f73b896..6ed364f75 100644
--- a/glx/render2swap.c
+++ b/glx/render2swap.c
@@ -353,13 +353,21 @@ __glXDispSwap_DrawArrays(GLbyte * pc)
glEdgeFlagPointer(stride, (const GLboolean *) pc);
break;
case GL_SECONDARY_COLOR_ARRAY:
+ {
+ PFNGLSECONDARYCOLORPOINTERPROC SecondaryColorPointerEXT =
+ __glGetProcAddress("glSecondaryColorPointerEXT");
glEnableClientState(GL_SECONDARY_COLOR_ARRAY);
- glSecondaryColorPointerEXT(numVals, datatype, stride, pc);
+ SecondaryColorPointerEXT(numVals, datatype, stride, pc);
break;
+ }
case GL_FOG_COORD_ARRAY:
+ {
+ PFNGLFOGCOORDPOINTERPROC FogCoordPointerEXT =
+ __glGetProcAddress("glFogCoordPointerEXT");
glEnableClientState(GL_FOG_COORD_ARRAY);
- glFogCoordPointerEXT(datatype, stride, pc);
+ FogCoordPointerEXT(datatype, stride, pc);
break;
+ }
default:
break;
}