diff options
Diffstat (limited to 'gpu/command_buffer/service/context_state.h')
-rw-r--r-- | gpu/command_buffer/service/context_state.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h index 47f180a..14a6d41 100644 --- a/gpu/command_buffer/service/context_state.h +++ b/gpu/command_buffer/service/context_state.h @@ -70,13 +70,13 @@ struct GPU_EXPORT TextureUnit { } void Unbind(TextureRef* texture) { - if (bound_texture_2d == texture) { + if (bound_texture_2d.get() == texture) { bound_texture_2d = NULL; } - if (bound_texture_cube_map == texture) { + if (bound_texture_cube_map.get() == texture) { bound_texture_cube_map = NULL; } - if (bound_texture_external_oes == texture) { + if (bound_texture_external_oes.get() == texture) { bound_texture_external_oes = NULL; } } |