* Mesa 3-D graphics library
* Version: 6.3
*
- * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
#include "math/m_matrix.h"
#include "math/m_xform.h"
#include "math/mathmod.h"
-#endif
+#endif\r
+#include "shaderobjects.h"
#ifdef USE_SPARC_ASM
#include "sparc/sparc.h"
goto cleanup;
#endif
- ss->BufferObjects = _mesa_NewHashTable();
+ ss->BufferObjects = _mesa_NewHashTable();\r
+\r
+ ss->GL2Objects = _mesa_NewHashTable ();
ss->Default1D = (*ctx->Driver.NewTextureObject)(ctx, 0, GL_TEXTURE_1D);
if (!ss->Default1D)
#if FEATURE_ARB_vertex_buffer_object
if (ss->BufferObjects)
_mesa_DeleteHashTable(ss->BufferObjects);
-#endif
+#endif\r
+\r
+ if (ss->GL2Objects)\r
+ _mesa_DeleteHashTable (ss->GL2Objects);
if (ss->Default1D)
(*ctx->Driver.DeleteTexture)(ctx, ss->Default1D);
#if FEATURE_ARB_vertex_buffer_object
_mesa_DeleteHashTable(ss->BufferObjects);
-#endif
+#endif\r
+\r
+ _mesa_DeleteHashTable (ss->GL2Objects);\r
+
_glthread_DESTROY_MUTEX(ss->Mutex);
FREE(ss);
_mesa_init_point( ctx );
_mesa_init_polygon( ctx );
_mesa_init_program( ctx );
- _mesa_init_rastpos( ctx );
+ _mesa_init_rastpos( ctx );\r
+ _mesa_init_shaderobjects (ctx);
_mesa_init_stencil( ctx );
_mesa_init_transform( ctx );
_mesa_init_varray( ctx );