PDA

View Full Version : RGBA filling in texture is not working using gles



anilec
05-10-2013, 12:40 AM
I am writing a code using gles. I created a texture and tried to fill that using different colours, But when i swapped the buffer only one color is visible at whole screen.

I am turning off the filtering using glTexParameteri(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_MAG_FILTER, GL_NEAREST) and glTexParameteri(GL_TEXTURE_EXTERNAL_OES, GL_TEXTURE_MIN_FILTER, GL_NEAREST).

My texture width and height is 1920*1024.
and i want to draw the complete texture as it is on my Device screen.

Any help would be appreciated.

GL Starter
05-10-2013, 06:00 AM
Hi,

Here texture width is non power of 2.
Please check the avaialability of gl_arb_texture_non_power_of_two extension in your device.