ofGetGLTypeFromPixelFormat error ? #1527

Closed
ofTheo opened this Issue Aug 31, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@ofTheo
Contributor

ofTheo commented Aug 31, 2012

@arturoc is this an error? shouldn't it return GL_BGRA ?

inline int ofGetGLTypeFromPixelFormat(ofPixelFormat pixelFormat){
    switch(pixelFormat){
    case OF_PIXELS_BGRA:
        return GL_RGBA;

@ghost ghost assigned arturoc Aug 31, 2012

@ofTheo

This comment has been minimized.

Show comment Hide comment
@ofTheo

ofTheo Jul 7, 2013

Contributor

ping @arturoc - feel free to close this if its not a bug.

currently its:

case OF_PIXELS_BGRA:
#ifdef TARGET_OPENGLES
        return GL_BGRA_EXT;
#else
        return GL_RGBA;
#endif
Contributor

ofTheo commented Jul 7, 2013

ping @arturoc - feel free to close this if its not a bug.

currently its:

case OF_PIXELS_BGRA:
#ifdef TARGET_OPENGLES
        return GL_BGRA_EXT;
#else
        return GL_RGBA;
#endif
@arturoc

This comment has been minimized.

Show comment Hide comment
@arturoc

arturoc Jul 7, 2013

Member

it was a bug, it's fixed with ae1d9c8.

Member

arturoc commented Jul 7, 2013

it was a bug, it's fixed with ae1d9c8.

@arturoc arturoc closed this Jul 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment