Please examine the attached corrections.
Erich Hoover
ehoover@mines.edu
On 11/03/07, Erich Hoover < ehoover@mines.edu> wrote:
> Is the attached what you mean?
>
> Erich Hoover
> ehoover@mines.edu
>
>+ if (IWineD3DSurface_LockRect(pCursorBitmap, &rect, NULL,
WINED3DLOCK_READONLY) == WINED3D_OK)
I know the current code doesn't do it everywhere either, but you
should probably be using SUCCEEDED() there.
>+ void *mem = rect.pBits;
...
>+ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height,
0, format, type, mem);
That may work, but it's not guaranteed to, see
http://msdn2.microsoft.com/en-us/library/bb206357.aspx