[Mesa-dev] [PATCH] main: Fix comment for SetTextureStorageForBufferObject.

Laura Ekstrand laura at jlekstrand.net
Wed Feb 25 18:01:45 PST 2015

It is really difficult to robustly create a 2D ARRAY texture
for a buffer object because this poses some miptree problems (as I discovered
while trying to fix Meta PBO uploads and downloads).
Therefore, we should stop advertising 2D ARRAY as an acceptable target for
this function.
 src/mesa/main/dd.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index ec8662b..6001efc 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -417,7 +417,7 @@ struct dd_function_table {
    /** Sets the given buffer object as the texture's storage.  The given
     * texture must have target GL_TEXTURE_1D, GL_TEXTURE_2D,
-    * GL_TEXTURE_RECTANGLE, and GL_TEXTURE_2D_ARRAY; have only a single
+    * and GL_TEXTURE_RECTANGLE; have only a single
     * mipmap level; be immutable; and must not have any assigned storage.
     * The format and dimensions of the gl_texture_object will already be
     * initialized.

More information about the mesa-dev mailing list