wined3d: Initialize the gl_info pointer from the context.

This commit is contained in:
Stefan Dösinger 2013-05-14 23:46:01 +02:00 committed by Alexandre Julliard
parent b12ec91c09
commit 121bd9d201
1 changed files with 1 additions and 1 deletions

View File

@ -7042,7 +7042,7 @@ static void upload_palette(const struct wined3d_surface *surface, struct wined3d
{
BYTE table[256][4];
struct wined3d_device *device = surface->resource.device;
const struct wined3d_gl_info *gl_info = &device->adapter->gl_info;
const struct wined3d_gl_info *gl_info = context->gl_info;
struct arbfp_blit_priv *priv = device->blit_priv;
BOOL colorkey = (surface->CKeyFlags & WINEDDSD_CKSRCBLT) != 0;