Page MenuHome

Draw: Improve Texture assignment operator
ClosedPublic

Authored by Miguel Pozo (pragma37) on Wed, Jan 25, 4:40 PM.

Details

Summary

The *this caused a cast to GPUTexture, so it was not possible to do a copy assignment to textures when tx_ was null.
This change also transfers all the copied contents and ensures the previous ones get freed.

Diff Detail

Repository
rB Blender
Branch
master
Build Status
Buildable 25563
Build 25563: arc lint + arc unit

Event Timeline

Miguel Pozo (pragma37) requested review of this revision.Wed, Jan 25, 4:40 PM
Miguel Pozo (pragma37) created this revision.
Miguel Pozo (pragma37) edited the summary of this revision. (Show Details)Wed, Jan 25, 4:53 PM
This revision is now accepted and ready to land.Wed, Jan 25, 5:00 PM
This revision was automatically updated to reflect the committed changes.