~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/gallium/state_trackers/glx/xlib/glx_api.c

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
   "GLX_MESA_copy_sub_buffer " \
54
54
   "GLX_MESA_pixmap_colormap " \
55
55
   "GLX_MESA_release_buffers " \
 
56
   "GLX_ARB_create_context " \
 
57
   "GLX_ARB_create_context_profile " \
56
58
   "GLX_ARB_get_proc_address " \
57
59
   "GLX_EXT_texture_from_pixmap " \
58
60
   "GLX_EXT_visual_info " \
1259
1261
   if (!b) {
1260
1262
      return 0;
1261
1263
   }
1262
 
   return b->drawable;
 
1264
   return b->ws.drawable;
1263
1265
}
1264
1266
 
1265
1267
 
1285
1287
   if (!b) {
1286
1288
      return 0;
1287
1289
   }
1288
 
   return b->drawable;
 
1290
   return b->ws.drawable;
1289
1291
}
1290
1292
 
1291
1293
 
1786
1788
{
1787
1789
   XMesaVisual xmvis;
1788
1790
 
 
1791
   /* register ourselves as an extension on this display */
 
1792
   register_with_display(dpy);
 
1793
 
1789
1794
   if (!attribList || !attribList[0]) {
1790
1795
      /* return list of all configs (per GLX_SGIX_fbconfig spec) */
1791
1796
      return glXGetFBConfigs(dpy, screen, nitems);
2036
2041
   if (xmbuf) {
2037
2042
      xmbuf->largestPbuffer = useLargest;
2038
2043
      xmbuf->preservedContents = preserveContents;
2039
 
      return (GLXPbuffer) xmbuf->drawable;
 
2044
      return (GLXPbuffer) xmbuf->ws.drawable;
2040
2045
   }
2041
2046
   else {
2042
2047
      return 0;
2310
2315
{
2311
2316
   XMesaVisual xmvis = (XMesaVisual) config;
2312
2317
   XMesaBuffer xmbuf = XMesaCreatePixmapBuffer(xmvis, pixmap, 0);
2313
 
   return xmbuf->drawable; /* need to return an X ID */
 
2318
   return xmbuf->ws.drawable; /* need to return an X ID */
2314
2319
}
2315
2320
 
2316
2321
 
2390
2395
   /* A GLXPbuffer handle must be an X Drawable because that's what
2391
2396
    * glXMakeCurrent takes.
2392
2397
    */
2393
 
   return (GLXPbuffer) xmbuf->drawable;
 
2398
   return (GLXPbuffer) xmbuf->ws.drawable;
2394
2399
}
2395
2400
 
2396
2401
 
2663
2668
                                GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB);
2664
2669
 
2665
2670
   /* parse attrib_list */
2666
 
   for (i = 0; !done && attrib_list[i]; i++) {
 
2671
   for (i = 0; !done && attrib_list && attrib_list[i]; i++) {
2667
2672
      switch (attrib_list[i]) {
2668
2673
      case GLX_CONTEXT_MAJOR_VERSION_ARB:
2669
2674
         majorVersion = attrib_list[++i];