Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games
Announcements
This forum is no longer monitored by Intel.

problem with creating depth texture for fbo on HD3000

Luk_sz
Beginner
1,487 Views

I have a notebook with nvidia and intel GPUs, this code works on nvidia but on intel glGetError returns  'invalid operation'

  glBindTexture(GL_TEXTURE_2D, m_depthTexture); 

  glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH32F_STENCIL8, WindowWidth, WindowHeight, 0, GL_DEPTH_COMPONENT, GL_FLOAT, nil);

Is there some other format for depth & stencil buffer that intel would accept? Tried some combinations but without luck

0 Kudos
2 Replies
AXEL_M_Intel1
Employee
1,487 Views

Can you try this?

  glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH32F_STENCIL8, WindowWidth, WindowHeight, 0, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, nil);

0 Kudos
Luk_sz
Beginner
1,487 Views

fbo initialized properly on both cards :)

thank you

0 Kudos
Reply