mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user