forked from mia/Aegisub
Add two more debug printfs:
* Print the WxH of the frame size. * Print the size of the texture actually used. Originally committed to SVN as r3629.
This commit is contained in:
parent
bb4506354f
commit
c204c766ec
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,7 @@ VideoOutGL::VideoOutGL()
|
||||||
void VideoOutGL::InitTextures(int width, int height, GLenum format, int bpp) {
|
void VideoOutGL::InitTextures(int width, int height, GLenum format, int bpp) {
|
||||||
// Do nothing if the frame size and format are unchanged
|
// Do nothing if the frame size and format are unchanged
|
||||||
if (width == frameWidth && height == frameHeight && format == frameFormat) return;
|
if (width == frameWidth && height == frameHeight && format == frameFormat) return;
|
||||||
|
wxLogDebug("VideoOutGL::InitTextures: Video size: %dx%d\n", width, height);
|
||||||
|
|
||||||
frameWidth = width;
|
frameWidth = width;
|
||||||
frameHeight = height;
|
frameHeight = height;
|
||||||
|
@ -189,6 +190,7 @@ void VideoOutGL::InitTextures(int width, int height, GLenum format, int bpp) {
|
||||||
glBindTexture(GL_TEXTURE_2D, ti.textureID);
|
glBindTexture(GL_TEXTURE_2D, ti.textureID);
|
||||||
if (GLenum err = glGetError()) throw VideoOutOpenGLException(L"glBindTexture", err);
|
if (GLenum err = glGetError()) throw VideoOutOpenGLException(L"glBindTexture", err);
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, w, h, 0, format, GL_UNSIGNED_BYTE, NULL);
|
glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, w, h, 0, format, GL_UNSIGNED_BYTE, NULL);
|
||||||
|
wxLogDebug("VideoOutGL::InitTextures: Using texture size: %dx%d\n", w, h);
|
||||||
if (GLenum err = glGetError()) throw VideoOutOpenGLException(L"glTexImage2D", err);
|
if (GLenum err = glGetError()) throw VideoOutOpenGLException(L"glTexImage2D", err);
|
||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
||||||
if (GLenum err = glGetError()) throw VideoOutOpenGLException(L"glTexParameteri(GL_TEXTURE_MIN_FILTER)", err);
|
if (GLenum err = glGetError()) throw VideoOutOpenGLException(L"glTexParameteri(GL_TEXTURE_MIN_FILTER)", err);
|
||||||
|
|
Loading…
Reference in a new issue