Jan Sikorski (@jsikorski) commented about dlls/wined3d/directx.c:
for (; gl_type <= gl_type_end; ++gl_type) {
unsigned int caps = format->caps[gl_type];
if (gl_type == WINED3D_GL_RES_TYPE_TEX_2D && !(bind_flags & WINED3D_BIND_SHADER_RESOURCE))
caps |= format->caps[WINED3D_GL_RES_TYPE_RB];
Shouldn't we use this 'caps' below?