[PATCH 4/5] wined3d: Use the chunk allocator for GL texture buffers.

Henri Verbeet hverbeet at gmail.com
Thu Feb 3 04:03:10 CST 2022


On Tue, 1 Feb 2022 at 22:45, Zebediah Figura <zfigura at codeweavers.com> wrote:
> @@ -3132,6 +3132,7 @@ bool wined3d_context_gl_create_bo(struct wined3d_context_gl *context_gl, GLsizei
>              case GL_ATOMIC_COUNTER_BUFFER:
>              case GL_DRAW_INDIRECT_BUFFER:
>              case GL_PIXEL_UNPACK_BUFFER:
> +            case GL_TEXTURE_BUFFER:
>                  if ((memory = wined3d_context_gl_allocate_memory(context_gl, memory_type_idx, size, &id)))
>                      buffer_offset = memory->offset;
>                  break;

Actually, note that sub-allocating texture buffers requires the
ARB_texture_buffer_range extension.



More information about the wine-devel mailing list