Re: WineD3D: Properly initialize a variable
26 Aug
2006
26 Aug
'06
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?
27 Aug
27 Aug
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.
7048
Age (days ago)
7049
Last active (days ago)
1 comments
2 participants
participants (2)
-
H. Verbeet -
Stefan Dösinger