Ticket #4064: glx-procaddressARB-configure.diff

File glx-procaddressARB-configure.diff, 2.0 KB (added by anonymous, 13 years ago)
  • configure

     
    163163  echo "                           directory with frontend.h [$dvb_path]"
    164164  echo "  --disable-x11            disable X11 support"
    165165  echo "  --x11-path=X11LOC        location of X11 include files [$x11_include_path-path]"
     166#  echo "  --enable-glx-procaddrarb use glXGetProcAddressARB() instead of glXGetProcAddress()"
    166167  echo "  --disable-xrandr         disable X11 resolution switching"
    167168  echo "  --disable-xv             disable XVideo   (X11 video output accel.)"
    168169  echo "  --disable-xvmc           disable XvMC     (Linux/BSD MPEG accel.)"
     
    904905    xvmc_vld
    905906    dvdv
    906907    fribidi
     908    glx_proc_addr_arb
    907909'
    908910
    909911MYTHTV_LIST='
     
    11891191xvmc_opengl="yes"
    11901192xvmc_vld="yes"
    11911193xvmcw="yes"
     1194glx_proc_addr_arb="no"
    11921195
    11931196# libraries
    11941197enable zlib
     
    13531356  ;;
    13541357  --xvmc-lib=*) xvmc_lib="$optval"
    13551358  ;;
     1359  --enable-glx-procaddrarb) glx_proc_addr_arb="yes"
     1360  ;;
     1361  --disable-glx-procaddrarb) glx_proc_addr_arb="no"
     1362  ;;
    13561363  --enable-mac-accel) dvdv="yes"
    13571364  ;;
    13581365  --disable-mac-accel) dvdv="no"
     
    33363343  fi
    33373344fi
    33383345
     3346if enabled glx_proc_addr_arb; then
     3347    append CONFIG_DEFINES "USING_GLX_PROC_ADDR_ARB"
     3348fi
     3349
    33393350if enabled xv; then
    33403351  echo "CONFIG_XV_LIBS=-lXinerama -lXv -lX11 -lXext -lXxf86vm" >> $MYTH_CONFIG_MAK
    33413352fi
  • libs/libmythtv/util-opengl.cpp

     
    306306{
    307307    __GLXextFuncPtr ret = NULL;
    308308
    309 #if GLX_VERSION_1_4
     309#if USING_GLX_PROC_ADDR_ARB
     310    X11S(ret = glXGetProcAddressARB((const GLubyte*)procName.latin1()));
     311#elif GLX_VERSION_1_4
    310312    X11S(ret = glXGetProcAddress((const GLubyte*)procName.latin1()));
    311313#elif GLX_ARB_get_proc_address
    312314    X11S(ret = glXGetProcAddressARB((const GLubyte*)procName.latin1()));