Commit Graph

218 Commits

Author SHA1 Message Date
Alexandre Julliard df91c7bc83 opengl32: Redirect standard OpenGL functions through the TEB function table. 2012-07-18 17:12:29 +02:00
Alexandre Julliard d66fa61e09 opengl32: Call OpenGL extension functions through the TEB function table. 2012-07-18 17:12:21 +02:00
Alexandre Julliard edb0044e50 opengl32: Generate a function table with null OpenGL entry points and store it in the TEB. 2012-07-18 17:10:45 +02:00
Alexandre Julliard 8b97ff3278 opengl32: Mark invalid handles with ffff instead of 0. 2012-07-16 15:21:47 +02:00
Alexandre Julliard 83be88953b opengl32: Make the WGL driver context-specific. 2012-06-29 20:41:36 +02:00
Alexandre Julliard 676194383c opengl32: Don't allow making a thread current in multiple threads. 2012-06-29 20:41:35 +02:00
Alexandre Julliard d89f7f2563 opengl32: Move checks of the context thread id to opengl32. 2012-06-29 20:41:35 +02:00
Alexandre Julliard 0045ec9dfb opengl32: Use proper handles for GL contexts and pass a context pointer to the WGL driver functions. 2012-06-29 20:41:34 +02:00
Alexandre Julliard 855f225498 opengl32: Move wglGetCurrentContext implementation to opengl32. 2012-06-28 18:52:11 +02:00
Alexandre Julliard edfc7f0de0 opengl32: Move wglGetProcAddress to the WGL driver. 2012-06-28 16:14:55 +02:00
Alexandre Julliard 8a13afedd6 opengl32: Move GetPixelFormat to the WGL driver. 2012-06-28 15:53:14 +02:00
Alexandre Julliard bbdf77a311 opengl32: Move wglCreateContext to the WGL driver. 2012-06-28 15:47:31 +02:00
Alexandre Julliard 3bcb8057a1 opengl32: Move wglCreateContextAttribsARB to the WGL driver. 2012-06-28 15:07:44 +02:00
Alexandre Julliard 47fe838b15 opengl32: Move wglMakeContextCurrentARB to the WGL driver. 2012-06-28 14:49:49 +02:00
Alexandre Julliard 7a031d9b92 opengl32: Add the concept of a WGL driver. 2012-06-28 14:37:31 +02:00
Julian Rüger 581c705ccc opengl32: Remove spaces preceding punctuation, streamline some debug messages. 2012-06-28 11:37:04 +02:00
Julian Rüger 2f38107556 opengl32: Fix typos in comments. 2012-06-28 11:37:03 +02:00
Alexandre Julliard 4a367c5719 winex11: Export wglMakeCurrent and wglMakeContextCurrentARB as standard extension functions. 2012-06-28 01:44:03 +02:00
Alexandre Julliard 312dd5297b opengl32: Get rid of the X11 locking. 2012-06-26 17:06:13 +02:00
Alexandre Julliard b6a7a3fe23 opengl32: Generate an entry point for glDebugEntry. 2012-06-26 17:06:13 +02:00
Alexandre Julliard 370a8c10d2 opengl32: Add a helper function to build the extension list, and do it only when requested. 2012-06-26 17:06:13 +02:00
Alexandre Julliard b349aa676f opengl32: Add a helper function to correctly compare extension strings. 2012-06-26 17:06:12 +02:00
Roderick Colenbrander 71faef0f50 opengl32: Disable wglGetProcAddress for core GL 1.0/1.1 functions. 2012-06-26 17:06:11 +02:00
Alexandre Julliard 67e7eda96c gdi32: Forward SwapBuffers to opengl32 which in turn calls GdiSwapBuffers. 2012-06-26 12:24:15 +02:00
Alexandre Julliard c013945728 gdi32: Forward SetPixelFormat to opengl32 which in turn calls GdiSetPixelFormat. 2012-06-26 12:24:15 +02:00
Alexandre Julliard e9f270bd41 gdi32: Forward DescribePixelFormat to opengl32 which in turn calls GdiDescribePixelFormat. 2012-06-26 12:24:14 +02:00
Alexandre Julliard 81cd178ae1 winex11: Move ChoosePixelFormat implementation to opengl32 and base it on DescribePixelFormat. 2012-06-26 12:24:09 +02:00
Alexandre Julliard 66a5995e11 winex11: Move wglGetCurrentContext and wglGetCurrentDC to the internal OpenGL extension functions. 2012-06-25 16:25:44 +02:00
Alexandre Julliard 08efea0218 winex11: Move wglCopyContext and wglDeleteContext to the internal OpenGL extension functions. 2012-06-25 13:52:10 +02:00
Alexandre Julliard beeba895d3 winex11: Move wglShareLists to the internal OpenGL extension functions. 2012-06-25 13:52:01 +02:00
Alexandre Julliard 1bca4fb5ae winex11: Move the wglUseFontBitmaps implementation to opengl32, it's no longer driver-dependent. 2012-06-25 11:58:53 +02:00
Roderick Colenbrander c9962bbb58 opengl32: Check for valid context in wglGetProcAddress. 2012-06-25 10:39:11 +02:00
Alexandre Julliard b88b6b74f0 opengl32: Get rid of the DIB section sync support. 2012-01-10 11:24:12 +01:00
Stefan Leichter 03c7dfbd4d opengl32: Replace the remaining forwards of wgl functions to gdi32.dll in the spec file with wrapper function. 2012-01-06 19:24:29 +01:00
Louis Lenders 8a2e38cc45 opengl32: Use wrappers for wglCreateContext and wglMakeCurrent instead of directly forwarding to gdi32. 2011-11-02 16:12:41 +01:00
Frédéric Delanoy 812c06ae94 opengl32: Avoid superfluous (void*) cast in LOAD_FUNCPTR macro. 2011-10-24 12:39:06 +02:00
Stefan Dösinger 4901291990 opengl32: Give wglSwapBuffers a real function, make it hookable. 2009-10-15 14:10:06 +02:00
Michael Stefaniuc d2fdc2d10b opengl32: Remove superfluous pointer casts. 2009-04-14 11:29:41 -05:00
Francois Gouget 822ab7b404 opengl32: Remove WINAPI on static functions where not needed. 2008-11-26 12:10:43 +01:00
Massimo Del Fedele d6a6b88f19 opengl32: glGetString() should return NULL on NULL context. 2008-07-04 19:34:45 +02:00
Alexandre Julliard 06640efa61 opengl32: Dynamically load libGLU.
Based on a patch by Roderick Colenbrander.
2008-05-01 14:44:49 +02:00
Alexandre Julliard ad79873527 configure: Improve the check for the GLU library. 2008-05-01 13:29:02 +02:00
Roderick Colenbrander 18e704f9aa opengl32: Get rid of X/GLX leftovers. 2008-05-01 10:57:34 +02:00
Markus Amsler f34efcb839 opengl: Allocate DisabledExtensions buffer. 2008-03-24 12:56:49 +01:00
Roderick Colenbrander 8295c547f3 wgl: Add wglCopyContext support. 2007-11-12 14:16:44 +01:00
Chris Robinson ebfba49e27 wgl: Remove GL scissors/viewport override. 2007-10-03 11:40:12 +02:00
Chris Robinson 665a8add92 wgl: Override glFinish and glFlush. 2007-09-25 13:33:37 +02:00
Roderick Colenbrander 802c87d066 opengl32: Relax extension checking. 2007-07-26 11:49:20 +02:00
Alexandre Julliard 5a95cfbd9c configure: Export the shared library extension instead of hardcoding .so. 2007-07-02 14:35:05 +02:00
Andrew Talbot cde845fec5 opengl32: Exclude unused header. 2007-05-16 11:56:01 +02:00
Stefan Huehner 4d1d01f266 Mark several functions as static. 2007-03-13 13:35:12 +01:00
Jan Zerebecki cfaf5059b2 opengl32: Remove redundant const. 2007-01-25 11:06:03 +01:00
Roderick Colenbrander bef91cd580 opengl32: Fix wglGetProcAddress typo. 2006-12-29 12:49:41 +01:00
Roderick Colenbrander 402d277765 wgl: Fix wglGetProcAddress bug. 2006-12-28 12:22:08 +01:00
Alexandre Julliard fdcd9859b4 winex11.drv: Get rid of the display pointer in the GL context. 2006-12-12 18:23:34 +01:00
Alexandre Julliard 6e01e4aa51 opengl32: Don't use ENTER_GL/LEAVE_GL around calls to driver functions.
This causes lock inversions when the driver accesses the DC.
2006-12-12 18:21:01 +01:00
Alexandre Julliard de154e738a opengl32: Avoid generating a wrapper for internal functions when we can call the internal one directly. 2006-12-12 17:59:44 +01:00
Ulrich Czekalla 715d0e8409 winex11.drv: Correctly position and clip opengl child windows. 2006-12-12 17:28:12 +01:00
Francois Gouget b2656633a6 Add some documentation headers to make winapi_check happy. 2006-11-13 13:01:15 +01:00
Alexandre Julliard 879da0436a opengl32: Hack to make sure winex11 is loaded before getting function pointers. 2006-11-10 12:37:04 +01:00
Francois Gouget 30e44c85c8 Assorted spelling fixes. 2006-11-07 15:25:24 +01:00
Roderick Colenbrander 6c4267a1cf opengl32: Use HKCU instead of HKLM. 2006-11-06 12:13:14 +01:00
Roderick Colenbrander 1ef0d0a61a opengl32: Remove glx context. 2006-11-04 12:01:55 +01:00
Roderick Colenbrander 2f8a05e27e wgl: Add extension checking code / glxGetProcAddress protection. 2006-11-03 21:00:29 +01:00
Roderick Colenbrander 88ad69f9bd wgl: Move part of wglGetProcAddress to gdi32. 2006-10-27 12:43:31 +02:00
Roderick Colenbrander 7eea8b9312 wgl: Move wglDeleteContext to gdi32. 2006-10-17 11:14:07 +02:00
Roderick Colenbrander 92e6e46ca9 wgl: Move wglShareLists to gdi32. 2006-10-16 12:05:32 +02:00
Roderick Colenbrander 8c32dd77a3 wgl: Move wglGetCurrentDC to gdi32. 2006-10-16 12:05:20 +02:00
Roderick Colenbrander ad7bc71c0c wgl: Move wglGetCurrentContext to gdi32. 2006-10-16 12:03:47 +02:00
Michael Stefaniuc d421935df7 opengl32: Win64 printf format warning fixes. 2006-10-05 11:33:17 +02:00
Roderick Colenbrander 95a67ab373 gdi32: Route WGL font code through gdi32.dll. 2006-10-04 10:10:03 +02:00
Roderick Colenbrander 4b212dc401 gdi32: Route WGL context code through gdi32.dll. 2006-10-04 10:07:33 +02:00
Roderick Colenbrander 272196f514 winex11.Drv: Remove unneeded wgl exports. 2006-09-26 11:41:46 +02:00
Roderick Colenbrander b669fcaf7b opengl: Move wgl font code to winex11.drv. 2006-09-21 11:45:08 +02:00
Roderick Colenbrander 4287bf392b opengl32: Remove unused code. 2006-09-12 14:35:31 +02:00
Roderick Colenbrander 12dbce5c93 winex11.drv: Move WGL extension code to winex11.drv. 2006-09-12 14:35:31 +02:00
Roderick Colenbrander 2b36c4a4c3 winex11.drv: Import glx makecurrent/wglsharelists. 2006-09-11 11:33:02 +02:00
Roderick Colenbrander 9377c23eff winex11.drv: Import glx context code. 2006-09-11 11:31:13 +02:00
Francois Gouget 06f9532dda Assorted spelling fixes. 2006-09-08 11:04:53 +02:00
Roderick Colenbrander 336f34f652 opengl: Fix Mesa/DRI regression. 2006-08-28 11:36:21 +02:00
Roderick Colenbrander f25cea1094 opengl32: Fix ATI OpenGL bug. 2006-08-24 12:07:51 +02:00
Roderick Colenbrander 59dc73b911 x11drv/opengl: Pixel format rewrite. 2006-08-17 11:48:21 +02:00
Alexandre Julliard 1249c64277 opengl32: Make some functions and variables static. 2006-08-02 13:26:36 +02:00
Huw Davies ac5a024a5c opengl32: Fix the returned metrics and add a translation vector to the end of each list. 2006-06-28 15:38:48 +02:00
Huw Davies 53348f8966 opengl32: If there's no glX context don't return a wgl context. 2006-06-23 11:53:32 +02:00
Alexandre Julliard ad5e02e604 opengl32: Store function pointers in a separate array to avoid a bunch of relocations. 2006-06-09 18:13:09 +02:00
Alexandre Julliard 3e68508ecd opengl32: Only store the glX name if different from the wgl name. 2006-06-09 16:26:44 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Michael Stefaniuc a87520036f janitorial: Remove redundant NULL pointer checks before HeapFree'ing them.
Some HeapFree's are hidden behind macros. Found by smatch.
2006-05-10 11:31:41 +02:00
Tomas Carnecky 3a3a0b3013 opengl: Properly use glXQueryDrawable() to get the Visual ID. 2006-05-09 12:39:30 +02:00
Tomas Carnecky 56de92d795 opengl: Put OpenGL setup functions into their own debug channel. 2006-03-27 11:30:50 +02:00
Mike Hearn 253a2d089c opengl32: Optimize thunks by storing GL context in the thread environment block. 2006-03-21 11:27:13 +01:00
Huw Davies 4eb4546f21 opengl32: Implement wglUseFontOutlines. 2006-03-08 11:34:18 +01:00
Huw Davies 13268261bb opengl: Sync a dibsection to its pixmap before drawing to it via opengl. 2006-02-02 13:23:55 +01:00
Huw Davies 586ed7d458 opengl: Use indirect contexts if the surface is a pixmap. 2006-01-11 12:10:04 +01:00
Raphael Junqueira 2d708edc5f opengl: Fix last wgl regression.
Fix wgl regression: test glx server version and extensions to use (and
not use glXQueryDrawable on older glx implementations).
2005-12-22 13:54:01 +01:00
Huw Davies 412cb77d51 opengl: Add support for rendering on bitmaps. 2005-12-19 17:45:13 +01:00
Raphael Junqueira 1399edb092 opengl: render_texture
- better render_texture emulation (using pbuffers)
- support GLX_ATI_render_texture for render_texture
2005-12-08 12:45:07 +01:00
Aric Cyr d0713d28e2 Move standard WGL function declarations to wingdi.h.
dlls/opengl32/wgl.h is now empty and no longer needed.
2005-12-03 18:01:51 +01:00
Raphael Junqueira 902edb117c Added some checks on wglCreatContext to avoid problems (and
SetLastErrors).
2005-11-30 18:26:16 +01:00