Commit 1f736b5f authored by Alexandre Julliard's avatar Alexandre Julliard

wineandroid: Initial version of the OpenGL driver.

parent ad9fbf8e
......@@ -5,6 +5,7 @@ C_SRCS = \
device.c \
init.c \
keyboard.c \
opengl.c \
window.c
IN_SRCS = \
......
......@@ -49,6 +49,14 @@ DECL_FUNCPTR( ANativeWindow_release );
/**************************************************************************
* OpenGL driver
*/
extern void destroy_gl_drawable( HWND hwnd ) DECLSPEC_HIDDEN;
extern struct opengl_funcs *get_wgl_driver( UINT version ) DECLSPEC_HIDDEN;
/**************************************************************************
* Android pseudo-device
*/
......
......@@ -307,6 +307,22 @@ BOOL CDECL ANDROID_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devm
}
/**********************************************************************
* ANDROID_wine_get_wgl_driver
*/
static struct opengl_funcs * ANDROID_wine_get_wgl_driver( PHYSDEV dev, UINT version )
{
struct opengl_funcs *ret;
if (!(ret = get_wgl_driver( version )))
{
dev = GET_NEXT_PHYSDEV( dev, wine_get_wgl_driver );
ret = dev->funcs->wine_get_wgl_driver( dev, version );
}
return ret;
}
static const struct gdi_dc_funcs android_drv_funcs =
{
NULL, /* pAbortDoc */
......@@ -435,7 +451,7 @@ static const struct gdi_dc_funcs android_drv_funcs =
NULL, /* pStrokePath */
NULL, /* pUnrealizePalette */
NULL, /* pWidenPath */
NULL, /* wine_get_wgl_driver */
ANDROID_wine_get_wgl_driver, /* wine_get_wgl_driver */
GDI_PRIORITY_GRAPHICS_DRV /* priority */
};
......
......@@ -1001,6 +1001,7 @@ void CDECL ANDROID_DestroyWindow( HWND hwnd )
if (data->surface) window_surface_release( data->surface );
data->surface = NULL;
destroy_gl_drawable( hwnd );
free_win_data( data );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment