Bug 12401 - GL.DeleteTexture is missing uint overload
Summary: GL.DeleteTexture is missing uint overload
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll (show other bugs)
Version: 6.2.x
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Rolf Bjarne Kvinge [MSFT]
Depends on:
Reported: 2013-05-27 05:48 UTC by Jonas Sourlier
Modified: 2013-06-17 07:40 UTC (History)
4 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:


Description Jonas Sourlier 2013-05-27 05:48:06 UTC
The method

GL.DeleteTexture(int textureId)

accepts only an int-typed texture ID. However, other OpenGL ES methods like BindTexture operate with uint IDs exclusively. Other methods like GenTextures accept both uint and int values.

See also http://www.opentk.com/node/1960
Comment 1 Rolf Bjarne Kvinge [MSFT] 2013-05-31 06:42:02 UTC
It looks like this is an upstream bug:


Only the int overload is present in that file.

I filed an upstream bug about this: http://www.opentk.com/node/3333
Comment 2 Rolf Bjarne Kvinge [MSFT] 2013-05-31 06:56:54 UTC
In any case I went ahead and fix this in our opentk clone.

opentk: bea28e54e19ec625f3a272e3db935d292c63874a
monotouch: a52ff4ad706ecda8eb87ee2271507d68979c0e60
Comment 3 narayanp 2013-06-17 07:36:34 UTC
To verify this issue we have opened GLPaint-GameView application and tried to add code "GL.DeleteTexture (uint TextureUnit ) and GL.Deletetexture (int TextureUnit)" and we are successfully able to use 'uint'. This is the screencast for the same: http://screencast.com/t/6uAnCLUWUvYE

X.S 4.0.7-1
Xamarin.iOS 6.3.6-76
Mono 3.0.11

Changing the status to Verified.
Comment 4 Jonas Sourlier 2013-06-17 07:40:48 UTC
:D the way you're 'verifying' it, you could also pass string variables or elephants to OpenGL..

Note You need to log in before you can comment on or make changes to this bug.