Null/Default GLResource objects have name = 0.

* This gives us a sane default, particularly for when we want to
  serialise a GLResource directly.
This commit is contained in:
baldurk
2017-10-27 17:18:14 +01:00
parent fa071a6ca5
commit bc8aea585d
+2 -2
View File
@@ -102,13 +102,13 @@ struct GLResource
{
Namespace = eResUnknown;
Context = NULL;
name = ~0U;
name = 0;
}
GLResource(NullInitialiser)
{
Namespace = eResUnknown;
Context = NULL;
name = ~0U;
name = 0;
}
GLResource(void *ctx, GLNamespace n, GLuint i)
{