Subversion Repositories eduke32

Rev

Rev 4998 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4998 Rev 5074
Line 505... Line 505...
505
505
506
    if (!texuploaded)
506
    if (!texuploaded)
507
    {
507
    {
508
        bglTexImage2D(GL_TEXTURE_2D, 0, fmt, codec->width,codec->height,
508
        bglTexImage2D(GL_TEXTURE_2D, 0, fmt, codec->width,codec->height,
509
                     0, fmt, GL_UNSIGNED_BYTE, codec->pic);
509
                     0, fmt, GL_UNSIGNED_BYTE, codec->pic);
-
 
510
        if (bglGetError() != GL_NO_ERROR) return 1;
510
        texuploaded = 1;
511
        texuploaded = 1;
511
    }
512
    }
512
    else
513
    else
513
    {
514
    {
514
        bglTexSubImage2D(GL_TEXTURE_2D, 0, 0,0, codec->width,codec->height,
515
        bglTexSubImage2D(GL_TEXTURE_2D, 0, 0,0, codec->width,codec->height,
515
                        fmt, GL_UNSIGNED_BYTE, codec->pic);
516
                        fmt, GL_UNSIGNED_BYTE, codec->pic);
-
 
517
        if (bglGetError() != GL_NO_ERROR) return 1;
516
    }
518
    }
517
519
518
    float vid_wbyh = ((float)codec->width)/codec->height;
520
    float vid_wbyh = ((float)codec->width)/codec->height;
519
    float scr_wbyh = ((float)xdim)/ydim;
521
    float scr_wbyh = ((float)xdim)/ydim;
520
522