mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
[KMS/DRM] Correct comments about last bugfix.
This commit is contained in:
parent
e34caa9779
commit
e1fb969b76
@ -1781,14 +1781,17 @@ KMSDRM_CreateWindow(_THIS, SDL_Window * window)
|
||||
int ret = 0;
|
||||
|
||||
if ( !(dispdata->gbm_init) && !is_vulkan && !vulkan_mode ) {
|
||||
|
||||
/* Maybe you didn't ask for an OPENGL window, but that's what you will get.
|
||||
At the end of this function, we must have marked the window as being OPENGL
|
||||
|
||||
/* If this is not a Vulkan Window, then this is a GL window, so at the
|
||||
end of this function, we must have marked the window as being OPENGL
|
||||
and we must have loaded the GL library: both things are needed so the
|
||||
GL_CreateRenderer() and GL_LoadFunctions() calls in SDL_CreateWindow()
|
||||
succeed without having to re-create the window.
|
||||
We must load the EGL library too, which can't be loaded until the GBM device
|
||||
has been created, because SDL_EGL_Library() function uses it. */
|
||||
We must load the EGL library too, which can't be loaded until the GBM
|
||||
device has been created, because SDL_EGL_Library() function uses it. */
|
||||
|
||||
/* Maybe you didn't ask for an OPENGL window, but that's what you will get.
|
||||
See previous comment on why. */
|
||||
window->flags |= SDL_WINDOW_OPENGL;
|
||||
|
||||
/* Reopen FD, create gbm dev, setup display plane, etc,.
|
||||
|
Loading…
Reference in New Issue
Block a user