Results 1 to 2 of 2

Thread: GL_INVALID_OPERATION on glGetTexImage

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2010
    Posts
    2

    GL_INVALID_OPERATION on glGetTexImage

    Dear GL developers,

    I'm trying to use the function glGetTexImage on textures generated from a movie. For some reason I get the error GL_INVALID_OPERATION and am clueless on how to solve it, what is causing it. Offcourse the array in which I want to store the data is empty.

    The code that's responsible for drawing my textures is ->

    http://pastebin.com/m2e8422e6

    After I try to apply glGetTexImage the texture does get drawn and displayed correctly.

    If more code/info is required I'll be more then happy to suply it. Thanks all!

  2. #2
    Junior Member Newbie
    Join Date
    Jan 2010
    Posts
    2

    Re: GL_INVALID_OPERATION on glGetTexImage

    When I change the call to:

    glGetTexImage(target, 0, GL_RGB, GL_UNSIGNED_BYTE, buffer);

    My error is gone, nevertheless my array's still left blank. Help is really really appreciated on this one.

    EDIT: Applied glReadPixels and is working now.. Seemed like it was using some sort of PBuffer deep down

Similar Threads

  1. Problem with glGetTexImage
    By miketyson27 in forum OpenGL ES
    Replies: 2
    Last Post: 04-17-2011, 07:20 AM
  2. glGetTexImage
    By cruachan in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-19-2005, 05:24 PM
  3. FBO + glGetTexImage == no go?
    By ScottManDeath in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 05-10-2005, 10:25 AM
  4. GL_INVALID_OPERATION
    By MickeyMouse in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-21-2003, 01:02 AM
  5. Will this cause an GL_INVALID_OPERATION??
    By Roach in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 11-20-2002, 07:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean