mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
glsl2: Make glsl_types::ctx private again
This commit is contained in:
parent
eb7e120f0f
commit
cf41c8a0d8
2 changed files with 5 additions and 3 deletions
|
|
@ -35,8 +35,8 @@ hash_table *glsl_type::array_types = NULL;
|
|||
hash_table *glsl_type::record_types = NULL;
|
||||
void *glsl_type::ctx = NULL;
|
||||
|
||||
static void
|
||||
init_talloc_type_ctx(void)
|
||||
void
|
||||
glsl_type::init_talloc_type_ctx(void)
|
||||
{
|
||||
if (glsl_type::ctx == NULL) {
|
||||
glsl_type::ctx = talloc_init("glsl_type");
|
||||
|
|
|
|||
|
|
@ -388,6 +388,7 @@ struct glsl_type {
|
|||
return is_array() ? length : -1;
|
||||
}
|
||||
|
||||
private:
|
||||
/**
|
||||
* talloc context for all glsl_type allocations
|
||||
*
|
||||
|
|
@ -395,7 +396,8 @@ struct glsl_type {
|
|||
*/
|
||||
static TALLOC_CTX *ctx;
|
||||
|
||||
private:
|
||||
void init_talloc_type_ctx(void);
|
||||
|
||||
/** Constructor for vector and matrix types */
|
||||
glsl_type(GLenum gl_type,
|
||||
unsigned base_type, unsigned vector_elements,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue