# Embedded window

**URL:** <https://community.khronos.org/t/embedded-window/110159>\
**Category:** OpenGL\
**Created:** [October 16, 2023, 11:02am UTC](https://community.khronos.org/t/embedded-window/110159 "2023-10-16T11:02:02Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![patas](https://community.khronos.org/letter_avatar_proxy/v4/letter/p/d9b06d/32.png) [@patas](https://community.khronos.org/u/patas)\
**Post date:** [October 17, 2023, 9:28pm UTC](https://community.khronos.org/t/embedded-window/110159/7 "2023-10-17T21:28:10Z")

</div>

I figured it out, i looked at the source code of the `SDL_video.c`, and there is the hint u have to set on `TRUE`. I broswed like hundreds of pages and it was never been mentioned. Crazy. Ok, whoever read this, just do `SDL_SetHint(SDL_HINT_VIDEO_FOREIGN_WINDOW_OPENGL, "1")` before initilizing SDL. After that GLContext should be set correctly. I suppose this hint came with latest updates of SDL.

---

_[View the full topic](https://community.khronos.org/t/embedded-window/110159)._
