GL_TEXTURE_CROP_RECT_OES crash

This topic contains 3 replies, has 3 voices, and was last updated by  jacekc 8 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29823

    ElCheM0
    Member

    Hi,
    I’m trying to use the OES_draw_texture extension using the SDK 2.4 rel 2, but it crashes the application as soon the GL_TEXTURE_CROP_RECT_OES is defined.

    i.e.

        unsigned char tex_image[256][256 * 4]; //RGBA
        int cropRect[4] = { 0, 0, 256, 256 };

        GLuint texture=0;
        glEnable(GL_TEXTURE_2D);
        glGenTextures(1, &texture);
        glBindTexture(GL_TEXTURE_2D, texture);
        glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, tex_image);
        glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);//crash
        m_Extensions.glDrawTexiOES(0,0,1,256,256);//crash
    [/CODE]
    In previous version the extension works  good.
    Thanks.

    [CODE]
        unsigned char tex_image[256][256 * 4]; //RGBA
        int cropRect[4] = { 0, 0, 256, 256 };

        GLuint texture=0;
        glEnable(GL_TEXTURE_2D);
        glGenTextures(1, &texture);
        glBindTexture(GL_TEXTURE_2D, texture);
        glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, tex_image);
        glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);//crash
        m_Extensions.glDrawTexiOES(0,0,1,256,256);//crash
    [/CODE]
    In previous version the extension works  good.
    Thanks.

    #33142

    Gordon
    Moderator

    Can you tell us which platform you’re running this on?

    #33143

    ElCheM0
    Member

    I’m using the PVRFrame on ATI Radeon X300.
    Now it not crashes on glTexParameteriv but does on glDrawTexiOES. It seems to be a problem with the OGL context. On previous versions of the SDK all the extensions works without problems.

    #33144

    jacekc
    Member

    Hi,

    Thank you for reporting the problem. This issue is known and will be fixed in our next release

    Kindest Regards,

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