Commit 00fbe734 authored by Michael Brüning's avatar Michael Brüning Committed by Michael Bruning
Browse files

[Win] Use automatic destruction for PbufferGLSurfaceWGL.


PbufferGLSurfaceWGL is a reference counted class, hence deleting
it manually triggers an assert in debug builds if Release is not
called or the reference count is non-zero.

Using a scoped_refptr prevents this and deletes the object
correctly.

Change-Id: I7e5ff783afc367e06d872b8d118c2ff83627b836
Reviewed-by: default avatarJocelyn Turcotte <jocelyn.turcotte@digia.com>
parent 833e8261
No related merge requests found
Showing with 2 additions and 5 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment