d3d9: ATI1N support

Henri Verbeet hverbeet at gmail.com
Sun Jun 7 12:35:03 CDT 2009


2009/6/7 Frank Richter <frank.richter at gmail.com>:
> +/* Download data for a compressed surface */
> +static void surface_download_data_compressed(IWineD3DSurfaceImpl *This, const struct GlPixelFormatDesc *format_desc) {
> +    TRACE("(%p) : Calling glGetCompressedTexImageARB level %d, format %#x, type %#x, data %p\n",
> +	    This, This->glDescription.level, format_desc->glFormat, format_desc->glType,
> +	    This->resource.allocatedMemory);
> +
> +    if(This->Flags & SFLAG_PBO) {
> +	GL_EXTCALL(glBindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, This->pbo));
> +	checkGLcall("glBindBufferARB");
> +	GL_EXTCALL(glGetCompressedTexImageARB(This->glDescription.target, This->glDescription.level, NULL));
> +	checkGLcall("glGetCompressedTexImageARB()");
> +	GL_EXTCALL(glBindBufferARB(GL_PIXEL_PACK_BUFFER_ARB, 0));
> +	checkGLcall("glBindBufferARB");
> +    } else {
> +	GL_EXTCALL(glGetCompressedTexImageARB(This->glDescription.target, This->glDescription.level, This->resource.allocatedMemory));
> +	checkGLcall("glGetCompressedTexImageARB()");
> +    }
> +}

Please don't add tabs. I also think wined3d would be more appropriate
as module name for these patches.



More information about the wine-devel mailing list