Index: trunk/src/gl/gl_window.cc
===================================================================
--- trunk/src/gl/gl_window.cc	(revision 292)
+++ trunk/src/gl/gl_window.cc	(revision 295)
@@ -206,5 +206,5 @@
 
 gl_window::gl_window( device* dev, uint16 width, uint16 height, bool fullscreen )
-	: m_device( dev ), m_width( width ), m_height( height ), m_title("NV Engine"), m_handle( nullptr ), m_adopted( false )
+	: m_device( dev ), m_width( width ), m_height( height ), m_title("NV Engine"), m_handle( nullptr ), m_hwnd( 0 ), m_adopted( false )
 {
 	//	bpp = m_info->vfmt->BitsPerPixel;
@@ -298,5 +298,13 @@
 void gl_window::swap_buffers()
 {
-	if ( m_adopted ) return; // NOT SURE
+	if ( m_adopted )
+	{
+#if NV_PLATFORM == NV_WINDOWS
+		::SwapBuffers( (HDC)m_hwnd );
+#else
+	NV_ASSERT( false, "Native GL context only working with SDL 2.0!" );
+#endif
+
+	}
 #if NV_SDL_VERSION == NV_SDL_20
 	SDL_GL_SwapWindow( static_cast<SDL_Window*>( m_handle ) );
@@ -328,4 +336,5 @@
 //  	m_height  = (uint16)rect.bottom;
 	m_handle  = window;
+	m_hwnd    = ::GetDC( (HWND)handle );
 	m_context->set_viewport( nv::ivec4( 0, 0, m_width, m_height ) );
 #else
