You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 2.0 Reported for operating system, platform: Windows Vista, x86
Comments on the original bug report:
On 2009-08-05 06:53:49 +0000, Alistair Lowe wrote:
Created attachment 343
SVN 1.3.0 OpenGL Patch File
Hello,
Attached is a patch based on the 4657 1.3.0 SVN build. This enables creation of openGL 3.2+ core contexts in the Win32 driver through the normal means of assigning an openGL version number. I have also made such changes to the X11 driver however am unable to test these. I have also updated sdl_opengl.h to include the current version of glext.h with openGL 3.2 support and included the current gl3.h with the opt-in compile flag SDL_GL3 - this also ensures that gl.h,glu.h and extensions are not compiled as they are not compatible.
Many thanks.
p.s. - If you can provide any information on becoming a direct contributor to the SVN it would be much appreciated.
On 2009-08-05 07:09:06 +0000, Alistair Lowe wrote:
Ah I almost forgot:
Corrected a typo in one of the WGL definitions.
Improved fallback to openGL 2.x in Win32.
The repost of testgl2 is due to a mistake where CommonInit() was being called after setting GL Attributes, causing them to not be recognised.
Many thanks.
On 2009-08-07 12:59:40 +0000, Alistair Lowe wrote:
Created attachment 344
OpenGL 3.2 Context patch
Please find attached a new patch that allows for full user control of the OpenGL context, again only test in windows but also changed in x11. Introduced new SDL_GL attributes SDL_GL_CONTEXT_FLAGS and SDL_GL_CONTEXT_PROFILE_MASK. These allow for support for all openGL contexts 3.0, 3.1 and 3.2 and should be fine coping with new revisions. They will default to core non-backwards compatible profiles if none are passed. Should an openGL context not be obtainable due to incorrect configuration or lack of driver support automatic fall back to 2.1 will take place.
Many thanks.
On 2009-09-26 03:23:59 +0000, Sam Lantinga wrote:
Thanks! I'll be reviewing this patch for inclusion in SDL 1.3.
Do you give me permission to release your code with SDL 1.3 and future
versions of SDL under both the LGPL and a closed-source commercial
license?
On 2009-09-26 03:58:35 +0000, Alistair Lowe wrote:
Yes, no problem.
On 2009-09-26 04:35:05 +0000, Sam Lantinga wrote:
Thanks!
On 2011-02-28 15:24:50 +0000, Sam Lantinga wrote:
Created attachment 591
Similar patch from Riku Palomäki
Hello,
I needed to use OpenGL 3.2 compatibility profile with SDL 1.3, so I
made small patch that adds a new attribute SDL_GL_CONTEXT_PROFILE for
requesting specific OpenGL 3.x context profile.
Requesting specific profile works now like:
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE,
GL_CONTEXT_COMPATIBILITY_PROFILE_BIT);
If no specific profile is requested, the default behavior is the same
as earlier (Core profile will be used).
Tested with X11 (Ubuntu 64 bit) but even though I did implement the
same change to win32 code, I don't have Windows to try it.
I also (partially) fixed X11_GetWindowWMInfo, now you can actually get
the X11 Window with SDL_GetWindowWMInfo.
Attached "hg export" patch with two commits, please import these.
--
Riku Palomäki
On 2011-08-22 10:57:35 +0000, Matthias Bentrup wrote:
Created attachment 679
patch including {WGL,GLX}_ARB_create_context_robustness
This is a slightly updated version of patch 591 including the new {WGL,GLX}_CONTEXT_ROBUST_ACCESS_BIT_ARB context flags.
Also it defines new SDL constants that mirror the WGL or GLX constants, so that SDL users don't have to pass the system-dependant WGL* or GLX* constants.
On 2011-09-14 14:46:17 +0000, Martin Schreiber wrote:
Created attachment 702
updates to enable opengl core mode
OpenGL core mode initialization updated: otherwise a core mode context is never created.
This error can be reproduced by printing SDL_GetError() after trying to create a core mode window.
On 2011-09-16 13:33:50 +0000, Martin Schreiber wrote:
(In reply to comment # 8)
Created attachment 702 [details]
updates to enable opengl core mode
OpenGL core mode initialization updated: otherwise a core mode context is never
created.
This error can be reproduced by printing SDL_GetError() after trying to create
a core mode window.
this should help to reproduce the error and to see that the error does not occur anymore when applying the patch.
On 2011-10-30 03:58:24 +0000, Matthias Bentrup wrote:
Created attachment 725
context creation patch
I've updated the context creation patch to include the bugfixes by Martin Schreiber and also included a profile bit to request a ES2 compatible profile.
The wgl context creation may use 2 call to wglChoosePixelFormat if no acceleration attribute is selected, this should work around a bug with buggy AMD drivers (see # 1254).
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
SVN 1.3.0 OpenGL Patch File (SDL-1.3.0-4657openGLpatch, text/plain, 2009-08-05 06:53:49 +0000, 210552 bytes)Similar patch from Riku Palomäki (context_profile.patch, text/plain, 2011-02-28 15:24:50 +0000, 5776 bytes)patch including {WGL,GLX}_ARB_create_context_robustness (createcontext.diff, text/plain, 2011-08-22 10:57:35 +0000, 7413 bytes)Reported in version: HG 2.0
Reported for operating system, platform: Windows Vista, x86
Comments on the original bug report:
On 2009-08-05 06:53:49 +0000, Alistair Lowe wrote:
On 2009-08-05 07:09:06 +0000, Alistair Lowe wrote:
On 2009-08-07 12:59:40 +0000, Alistair Lowe wrote:
On 2009-09-26 03:23:59 +0000, Sam Lantinga wrote:
On 2009-09-26 03:58:35 +0000, Alistair Lowe wrote:
On 2009-09-26 04:35:05 +0000, Sam Lantinga wrote:
On 2011-02-28 15:24:50 +0000, Sam Lantinga wrote:
On 2011-08-22 10:57:35 +0000, Matthias Bentrup wrote:
On 2011-09-14 14:46:17 +0000, Martin Schreiber wrote:
On 2011-09-16 13:33:50 +0000, Martin Schreiber wrote:
On 2011-10-30 03:58:24 +0000, Matthias Bentrup wrote:
On 2012-02-20 20:40:28 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: