glBlendFunc() does not work well in ES2 SDK

This topic contains 1 reply, has 2 voices, and was last updated by  Xmas 9 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29509

    k2cdda
    Member
    I use ES2 SDK on WINXP.

     

    When I using glBlendFunc() function with GL_ONE_MINUS_DST_ALPHA or GL_DST_ALPHA

     

    GL_ONE_MINUS_DST_ALPHA works like GL_ZERO and GL_DST_ALPHA works like GL_ONE

     

    DST alpha value does not applied

     

    glBlendFunc(GL_DST_ALPHA, GL_ZERO);
    glEnable(GL_BLEND);
    glClearColor(1.0f, 1.0f, 1.0f, 0.1f);
    glClear(GL_COLOR_BUFFER_BIT);
    glDrawArrays(GL_TRIANGLES, 0, 3);

     

    even alpha value of clear color is 0.1f result sfactor is 1.0f

    k2cdda2008-04-14 10:44:08

    #32047

    Xmas
    Member

    Could you please check that the surface you are rendering to has an alpha channel, i.e. does the EGL config you used for surface creation have EGL_ALPHA_SIZE > 0?Xmas2008-04-14 11:57:09

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.