Re: WineD3D: Properly initialize a variable
Aug. 26, 2006
11:01 p.m.
On 26/08/06, Stefan Dösinger <stefan(a)codeweavers.com> wrote:
In IWineD3DSurfaceImpl_SaveSnapshot tmpTexture might be uninitialized, which might lead to accidentally binding the 0 texture. How does initialising it with 0 help then?
August 2006
10:43 a.m.
New subject: WineD3D: Properly initialize a variable
Am Sonntag 27 August 2006 01:01 schrieb H. Verbeet:
On 26/08/06, Stefan Dösinger <stefan(a)codeweavers.com> wrote:
In IWineD3DSurfaceImpl_SaveSnapshot tmpTexture might be uninitialized, which might lead to accidentally binding the 0 texture.
How does initialising it with 0 help then? We have a check against != 0 for tmpTexture later on, and if tmpTexture is any random value this check might succeed altough no temporary texture was created.
7151
Age (days ago)
7152
Last active (days ago)
1 comments
2 participants
participants (2)
-
H. Verbeet -
Stefan Dösinger