Changeset 62934 in vbox
- Timestamp:
- Aug 3, 2016 5:32:43 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109537
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/win/objbase.h
r62780 r62934 30 30 #pragma warning(push) 31 31 #pragma warning(disable:4668) /* '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' */ 32 #if !defined(__cplusplus) 33 # pragma warning(disable:4255) /* 'FARPROC' : no function prototype given: converting '()' to '(void)' */ 34 #endif 32 35 33 36 #include <objbase.h> -
trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/debug.c
r53222 r62934 32 32 33 33 #include "initguid.h" 34 #ifdef VBOX 35 # include <iprt/win/objbase.h> 36 # include <wine/wined3d.h> 37 # include <iprt/win/windows.h> 38 #else 34 39 #include <objbase.h> 35 40 #include <wine/wined3d.h> 36 41 #include <windows.h> 42 #endif 37 43 38 44 #include <stdlib.h> -
trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/include/wine/list.h
r53201 r62934 242 242 #undef LIST_ENTRY 243 243 #define LIST_ENTRY(elem, type, field) \ 244 ((type *)((char *)(elem) - (u nsigned long)(&((type *)0)->field)))244 ((type *)((char *)(elem) - (uintptr_t)(&((type *)0)->field))) 245 245 246 246 #endif /* __WINE_SERVER_LIST_H */ -
trunk/src/VBox/Devices/Graphics/shaderlib/shaderapi.c
r62514 r62934 15 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 16 */ 17 17 18 #include <iprt/err.h> 18 19 #include <iprt/mem.h> … … 144 145 /* Dynamically load all GL core functions. */ 145 146 #ifdef RT_OS_WINDOWS 146 # define USE_GL_FUNC(pfn) pfn = (void*)GetProcAddress(GetModuleHandle("opengl32.dll"), #pfn); 147 HANDLE hOpenGl32 = GetModuleHandle("opengl32.dll"); 148 # define USE_GL_FUNC(pfn) *(FARPROC *)(&pfn) = GetProcAddress(hOpenGl32, #pfn); 147 149 #else 148 # define USE_GL_FUNC(pfn) pfn = (void *)OGLGETPROCADDRESS(#pfn);150 # define USE_GL_FUNC(pfn) pfn = (void *)OGLGETPROCADDRESS(#pfn); 149 151 #endif 150 152 GL_FUNCS_GEN; … … 154 156 #define USE_GL_FUNC(type, pfn, ext, replace) \ 155 157 { \ 156 gl_info->pfn = ( void*)OGLGETPROCADDRESS(#pfn); \158 gl_info->pfn = (type)OGLGETPROCADDRESS(#pfn); \ 157 159 } 158 160 GL_EXT_FUNCS_GEN; … … 204 206 struct wined3d_context *context_acquire(IWineD3DDeviceImpl *This, IWineD3DSurface *target, enum ContextUsage usage) 205 207 { 208 RT_NOREF(This, target, usage); 206 209 return g_pCurrentContext; 207 210 } … … 322 325 } 323 326 324 hr = vertexshader_init(object, This, pShaderData, NULL, NULL, NULL);327 hr = vertexshader_init(object, This, (DWORD const *)pShaderData, NULL, NULL, NULL); 325 328 if (FAILED(hr)) 326 329 { … … 356 359 } 357 360 358 hr = pixelshader_init(object, This, pShaderData, NULL, NULL, NULL);361 hr = pixelshader_init(object, This, (DWORD const *)pShaderData, NULL, NULL, NULL); 359 362 if (FAILED(hr)) 360 363 { -
trunk/src/VBox/Devices/Graphics/shaderlib/wined3d_private.h
r54765 r62934 47 47 #include "winuser.h" 48 48 #else 49 #include < windows.h>49 #include <iprt/win/windows.h> 50 50 #endif 51 51 #include "wine/debug.h" … … 1333 1333 void context_surface_update(struct wined3d_context *context, IWineD3DSurfaceImpl *surface) DECLSPEC_HIDDEN; 1334 1334 #if defined(VBOX_WINE_WITH_SINGLE_CONTEXT) || defined(VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT) 1335 void context_clear_on_thread_detach( );1335 void context_clear_on_thread_detach(void); 1336 1336 #endif 1337 1337 /* Macros for doing basic GPU detection based on opengl capabilities */
Note:
See TracChangeset
for help on using the changeset viewer.