Lines Matching defs:surface
131 static void context_apply_attachment_filter_states(IWineD3DSurfaceImpl *surface)
136 if (SUCCEEDED(IWineD3DSurface_GetContainer((IWineD3DSurface *)surface,
139 IWineD3DDeviceImpl *device = surface->resource.device;
170 target = surface->texture_target;
187 glBindTexture(bind_target, surface->texture_name);
271 GLenum fbo_target, DWORD idx, IWineD3DSurfaceImpl *surface)
275 TRACE("Attach surface %p to %u\n", surface, idx);
277 if (surface)
279 surface_prepare_texture(surface, gl_info, FALSE);
280 context_apply_attachment_filter_states(surface);
282 gl_info->fbo_ops.glFramebufferTexture2D(fbo_target, GL_COLOR_ATTACHMENT0 + idx, surface->texture_target,
283 surface->texture_name, surface->texture_level);
675 void context_surface_update(struct wined3d_context *context, IWineD3DSurfaceImpl *surface)
685 if (surface == entry->render_targets[i])
687 TRACE("Updated surface %p is bound as color attachment %u to the current FBO.\n", surface, i);
693 if (surface == entry->depth_stencil)
695 TRACE("Updated surface %p is bound as depth attachment to the current FBO.\n", surface);
2805 * done via PreLoad (and SFLAG_INDRAWABLE set on the surface). There