Ignore:
Timestamp:
Mar 22, 2013, 7:45:30 PM (12 years ago)
Author:
gah
Message:
  • Clean up unused variable warnings.
  • Remove use of ffmpeg libraries from nanovis. This should make it easier to maintain (don't have to keep up with all the backward incompatible changes to the ffmpeg library).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Trace.cpp

    r3492 r3559  
    5454PrintFBOStatus(GLenum status, const char *prefix)
    5555{
     56#ifdef WANT_TRACE
    5657    const char *mesg;
     58
    5759    switch(status) {
    5860    case GL_FRAMEBUFFER_COMPLETE_EXT:
     
    7880    }
    7981    TRACE("FB Status: %s: %s", prefix, mesg);
     82#endif  /*WANT_TRACE*/
    8083}
    8184
     
    8386CheckGL(const char *prefix)
    8487{
    85     const char *mesg;
    8688    GLenum status = (GLenum)glGetError();
     89    if (status == GL_NO_ERROR) {
     90        return true;
     91    }
     92#ifdef WANT_TRACE
     93    const char *mesg;                   
     94
    8795    switch(status) {
    88     case GL_NO_ERROR:
    89         return true;
    9096    case GL_INVALID_ENUM:
    9197        mesg = "GL_INVALID_ENUM";                       break;
     
    107113    }
    108114    TRACE("GL Status: %s: %s", prefix, mesg);
     115#endif
    109116    return false;
    110117}
Note: See TracChangeset for help on using the changeset viewer.