wined3d: Set the volume.c GLINFO_LOCATION to *gl_info.
This commit is contained in:
parent
bcc4603125
commit
08c783a8ad
|
@ -25,7 +25,8 @@
|
||||||
#include "wined3d_private.h"
|
#include "wined3d_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(d3d_surface);
|
WINE_DEFAULT_DEBUG_CHANNEL(d3d_surface);
|
||||||
#define GLINFO_LOCATION This->resource.device->adapter->gl_info
|
|
||||||
|
#define GLINFO_LOCATION (*gl_info)
|
||||||
|
|
||||||
/* Context activation is done by the caller. */
|
/* Context activation is done by the caller. */
|
||||||
static void volume_bind_and_dirtify(IWineD3DVolume *iface) {
|
static void volume_bind_and_dirtify(IWineD3DVolume *iface) {
|
||||||
|
@ -313,8 +314,10 @@ static HRESULT WINAPI IWineD3DVolumeImpl_SetContainer(IWineD3DVolume *iface, IWi
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Context activation is done by the caller. */
|
/* Context activation is done by the caller. */
|
||||||
static HRESULT WINAPI IWineD3DVolumeImpl_LoadTexture(IWineD3DVolume *iface, int gl_level, BOOL srgb_mode) {
|
static HRESULT WINAPI IWineD3DVolumeImpl_LoadTexture(IWineD3DVolume *iface, int gl_level, BOOL srgb_mode)
|
||||||
IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
|
{
|
||||||
|
IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
|
||||||
|
const struct wined3d_gl_info *gl_info = &This->resource.device->adapter->gl_info;
|
||||||
const struct wined3d_format_desc *glDesc = This->resource.format_desc;
|
const struct wined3d_format_desc *glDesc = This->resource.format_desc;
|
||||||
|
|
||||||
TRACE("(%p) : level %u, format %s (0x%08x)\n", This, gl_level, debug_d3dformat(glDesc->format), glDesc->format);
|
TRACE("(%p) : level %u, format %s (0x%08x)\n", This, gl_level, debug_d3dformat(glDesc->format), glDesc->format);
|
||||||
|
|
Loading…
Reference in New Issue