# Sdl 2.0.8 released!

**URL:** <https://discourse.libsdl.org/t/sdl-2-0-8-released/23957>\
**Category:** SDL Announcements\
**Created:** [March 1, 2018, 4:55pm UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957 "2018-03-01T16:55:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [March 1, 2018, 4:55pm UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/1 "2018-03-01T16:55:41Z")

</div>

Thanks to all the people who contributed code and feedback, SDL 2.0.8 is now available!  
[http://www.libsdl.org/download-2.0.php](http://www.libsdl.org/download-2.0.php)

In addition to lots of bug fixes and build improvements, here are the major changes in this release:

General:

- Added SDL\_fmod() and SDL\_log10()
- Each of the SDL math functions now has the corresponding float version
- Added SDL\_SetYUVConversionMode() and SDL\_GetYUVConversionMode() to control the formula used when converting to and from YUV colorspace. The options are JPEG, BT.601, and BT.709

Windows:

- Implemented WASAPI support on Windows UWP and removed the deprecated XAudio2 implementation
- Added resampling support on WASAPI on Windows 7 and above

Windows UWP:

- Added SDL\_WinRTGetDeviceFamily() to find out what type of device your application is running on

Mac OS X:

- Added support for the Vulkan SDK for Mac:  
[https://www.lunarg.com/lunarg-releases-vulkan-sdk-1-0-69-0-for-mac/](https://www.lunarg.com/lunarg-releases-vulkan-sdk-1-0-69-0-for-mac/)
- Added support for OpenGL ES using ANGLE when it’s available

Mac OS X / iOS / tvOS:

- Added a Metal 2D render implementation
- Added SDL\_RenderGetMetalLayer() and SDL\_RenderGetMetalCommandEncoder() to insert your own drawing into SDL rendering when using the Metal implementation

iOS:

- Added the hint SDL\_HINT\_IOS\_HIDE\_HOME\_INDICATOR to control whether the home indicator bar on iPhone X should be hidden. This defaults to dimming the indicator for fullscreen applications and showing the indicator for windowed applications.

iOS / Android:

- Added the hint SDL\_HINT\_RETURN\_KEY\_HIDES\_IME to control whether the return key on the software keyboard should hide the keyboard or send a key event (the default)

Android:

- SDL now supports building with Android Studio and Gradle by default, and the old Ant project is available in android-project-ant
- SDL now requires the API 19 SDK to build, but can still target devices down to API 14 (Android 4.0.1)
- Added SDL\_IsAndroidTV() to tell whether the application is running on Android TV

Android / tvOS:

- Added the hint SDL\_HINT\_TV\_REMOTE\_AS\_JOYSTICK to control whether TV remotes should be listed as joystick devices (the default) or send keyboard events.

Linux:

- Added the hint SDL\_HINT\_VIDEO\_X11\_NET\_WM\_BYPASS\_COMPOSITOR to control whether the X server should skip the compositor for the SDL application. This defaults to “1”
- Added the hint SDL\_HINT\_VIDEO\_DOUBLE\_BUFFER to control whether the Raspberry Pi and KMSDRM video drivers should use double or triple buffering (the default)

---

<div class="post-metadata">

**Author:** ![bobluo](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bobluo](https://discourse.libsdl.org/u/bobluo)\
**Post date:** [April 1, 2018, 7:05pm UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/2 "2018-04-01T19:05:56Z")

</div>

I’m not able to create a vulkan window with the latest SDL\_WINDOW\_VULKAN. The error is “my driver do not support vulkan.”. It’s not true because I can run examples of Vulkan.  
My code:  
SDL\_INIT(SDL\_VIDEO); // return 0  
SDL\_Vulkan\_LoadLibrary(NULL); // no support video driver.  
SDL\_createWindow(…) // called with SDL\_WINDOW\_VULKAN flag

---

<div class="post-metadata">

**Author:** ![GameCodingNinja](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/gamecodingninja/32/3102_2.png) [@GameCodingNinja](https://discourse.libsdl.org/u/GameCodingNinja)\
**Post date:** [April 4, 2018, 12:07am UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/3 "2018-04-04T00:07:33Z")

</div>

Thank you sooo much for the ability to build with Android Studio!! I have been waiting on this for years. Not only can I build and run my code on my phone but I can also place break points, step through code and examine variable values. I couldn’t be happier!

---

<div class="post-metadata">

**Author:** ![bobluo](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bobluo](https://discourse.libsdl.org/u/bobluo)\
**Post date:** [April 4, 2018, 1:18am UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/4 "2018-04-04T01:18:57Z")

</div>

SDL comes with Vulkan SDK thrid-part works

---

<div class="post-metadata">

**Author:** ![icculus](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/icculus/32/81_2.png) [@icculus](https://discourse.libsdl.org/u/icculus)\
**Post date:** [April 8, 2018, 10:32pm UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/5 "2018-04-08T22:32:14Z")

</div>

> I’m not able to create a vulkan window with the latest SDL\_WINDOW\_VULKAN. The error is “my driver do not support vulkan.”.

Is the exact string “No Vulkan support in video driver” ?

If so, it means your build of SDL was compiled without Vulkan support (regardless of whether your system has Vulkan support or not).

–ryan.

---

<div class="post-metadata">

**Author:** ![bobluo](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/b/73ab20/32.png) [@bobluo](https://discourse.libsdl.org/u/bobluo)\
**Post date:** [April 10, 2018, 12:17am UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/6 "2018-04-10T00:17:53Z")

</div>

yep. Problem solved. Thank you.

---

<div class="post-metadata">

**Author:** ![Daniel\_Gibson](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/daniel_gibson/32/3010_2.png) [@Daniel\_Gibson](https://discourse.libsdl.org/u/Daniel_Gibson)\
**Post date:** [April 10, 2018, 12:37am UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/7 "2018-04-10T00:37:44Z")

</div>

Suggestion: Would it be possible to return a different error string for  
this case, like “SDL was not built with Vulkan support”?

Cheers,  
Daniel

---

<div class="post-metadata">

**Author:** ![icculus](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/icculus/32/81_2.png) [@icculus](https://discourse.libsdl.org/u/icculus)\
**Post date:** [April 10, 2018, 2:05am UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/8 "2018-04-10T02:05:25Z")

</div>

> [@Daniel\_Gibson](#):
>
> Suggestion: Would it be possible to return a different error string

I was just thinking that same thing. 🙂

Send a patch, I’ll apply it. There’s actually a few of these in SDL, but I’m not sure they all use the exact same wording to be searched/replaced.

–ryan.

---

<div class="post-metadata">

**Author:** ![Daniel\_Gibson](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/daniel_gibson/32/3010_2.png) [@Daniel\_Gibson](https://discourse.libsdl.org/u/Daniel_Gibson)\
**Post date:** [April 14, 2018, 11:54pm UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/9 "2018-04-14T23:54:25Z")

</div>

I found a few instances in SDL\_video.c, for Vulkan, OpenGL and dynamic GL (`SDL_GL_LoadLibrary()`).  
In one place the wording `"Vulkan support is either not configured in SDL " "or not available in video driver"` is used, and something like this could probably be used in all these cases…

However, probably the most confusion is caused by the term “video driver” which people assume to be the GPU driver they installed on their systems, while it really means “SDL video backend”.  
But as this term is used all over SDL, including the API (`SDL_GetVideoDriver()` etc) I’m not sure if changing it wouldn’t cause even more confusion?

---

<div class="post-metadata">

**Author:** ![Daniel\_Gibson](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/daniel_gibson/32/3010_2.png) [@Daniel\_Gibson](https://discourse.libsdl.org/u/Daniel_Gibson)\
**Post date:** [April 22, 2018, 10:27pm UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/10 "2018-04-22T22:27:49Z")

</div>

I wrote a patch (see attachment of this post), the error messages are now like `Vulkan support is either not configured in SDL or not available in current SDL video driver (x11) or platform`  
I guess that should be clear enough.

Cheers,  
Daniel

[sdl2-video-errormsgs.patch](https://discourse.libsdl.org/uploads/default/original/2X/1/1057b4abc4677439e97ef47e7fbc0051e0282201.patch) (3.0 KB)

---

<div class="post-metadata">

**Author:** ![nekitu](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/nekitu/32/3471_2.png) [@nekitu](https://discourse.libsdl.org/u/nekitu)\
**Post date:** [August 30, 2018, 8:42am UTC](https://discourse.libsdl.org/t/sdl-2-0-8-released/23957/11 "2018-08-30T08:42:04Z")

</div>

I have this particular problem which happens on Linux, on Windows it works ok:

- create two windows
- while pressing and holding mouse button in window#1 drag it over window#2, window#2 does not receive mouse motion events
- the window#1 still receives mouse motion events while dragging onto it

It’s like when dragging from one window to another locks the other window(s).  
I need it to implement a docking system, to drag tabs across many windows.  
Thanks for any clue.
