summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-01-31 16:26:42 -0500
committerMarge Bot <[email protected]>2020-02-11 00:34:57 +0000
commit63a241fa3283a0c389f671a556f705d1da25dd2a (patch)
tree87ba16b3f7bceabc247bd7f1356522374ac7e786 /src/mesa
parent077a843c27d84d4531074bbc477391e886a7ba71 (diff)
vbo: fix resizing 64-bit vertex attributes
Reviewed-by: Mathias Fröhlich <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3766>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/vbo/vbo_private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_private.h b/src/mesa/vbo/vbo_private.h
index 6110a6cc0e8..c94215a20f5 100644
--- a/src/mesa/vbo/vbo_private.h
+++ b/src/mesa/vbo/vbo_private.h
@@ -135,6 +135,8 @@ vbo_get_default_vals_as_union(GLenum format)
{
static const GLfloat default_float[4] = { 0, 0, 0, 1 };
static const GLint default_int[4] = { 0, 0, 0, 1 };
+ static const GLdouble default_double[4] = { 0, 0, 0, 1 };
+ static const uint64_t default_uint64[4] = { 0, 0, 0, 1 };
switch (format) {
case GL_FLOAT:
@@ -142,6 +144,10 @@ vbo_get_default_vals_as_union(GLenum format)
case GL_INT:
case GL_UNSIGNED_INT:
return (fi_type *)default_int;
+ case GL_DOUBLE:
+ return (fi_type *)default_double;
+ case GL_UNSIGNED_INT64_ARB:
+ return (fi_type *)default_uint64;
default:
unreachable("Bad vertex format");
return NULL;