vbox的更動 62201 路徑 trunk/src/VBox/Additions
- 時間撮記:
- 2016-7-12 下午02:14:55 (8 年 以前)
- 位置:
- trunk/src/VBox/Additions
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/common/crOpenGL/egl.c
r62074 r62201 29 29 #include <GL/glx.h> 30 30 #include <X11/Xlib.h> 31 32 #include <stdlib.h> 31 33 32 34 /******************************************************************************* … … 133 135 Display *pDisplay; 134 136 int rc, cError, cEvent, cMajor, cMinor; 135 137 /* Prevent working from inside the X server by requiring a valid DISPLAY. */ 138 char *pszDisplay = getenv("DISPLAY"); 139 140 if (!pszDisplay || !*pszDisplay) 141 return EGL_NO_DISPLAY; 136 142 rc = RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE); 137 143 if (RT_FAILURE(rc)) … … 164 170 DECLEXPORT(EGLBoolean) eglInitialize (EGLDisplay hDisplay, EGLint *pcMajor, EGLint *pcMinor) 165 171 { 172 /* Prevent working from inside the X server by requiring a valid DISPLAY. */ 173 char *pszDisplay = getenv("DISPLAY"); 174 175 if (!pszDisplay || !*pszDisplay) 176 return EGL_FALSE; 166 177 if (!VALID_PTR(hDisplay)) 167 178 return setEGLError(EGL_BAD_DISPLAY); … … 730 741 DECLEXPORT(EGLBoolean) eglBindAPI(EGLenum enmApi) 731 742 { 743 /* Prevent working from inside the X server by requiring a valid DISPLAY. */ 744 char *pszDisplay = getenv("DISPLAY"); 745 746 if (!pszDisplay || !*pszDisplay) 747 return EGL_FALSE; 732 748 return enmApi == EGL_OPENGL_API ? clearEGLError() : setEGLError(EGL_BAD_PARAMETER); 733 749 } -
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r62195 r62201 227 227 # Install the guest OpenGL drivers. For now we don't support 228 228 # multi-architecture installations 229 rm -f /etc/ld.so.conf.d/00vboxvideo.conf 230 ldconfig 229 231 if /usr/bin/VBoxClient --check3d 2>/dev/null; then 230 232 rm -f /var/lib/VBoxGuestAdditions/lib/system/tmp.so … … 247 249 ln -sf "${INSTALL_DIR}/lib/VBoxEGL.so" /var/lib/VBoxGuestAdditions/lib/libEGL.so.1 248 250 echo "/var/lib/VBoxGuestAdditions/lib" > /etc/ld.so.conf.d/00vboxvideo.conf 249 else250 rm -f /etc/ld.so.conf.d/00vboxvideo.conf251 251 fi 252 252 ldconfig
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器