]> git.vomp.tv Git - vompclient.git/commitdiff
OpenGL ES does not need power of 2 texture, code removed
authorMarten Richter <marten.richter@freenet.de>
Thu, 17 May 2012 10:30:23 +0000 (12:30 +0200)
committerMarten Richter <marten.richter@freenet.de>
Thu, 17 May 2012 10:30:23 +0000 (12:30 +0200)
osdopengl.cc [changed mode: 0644->0755]
surfaceopengl.cc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 27008d0..b03d8e7
@@ -254,8 +254,8 @@ GLuint OsdOpenGL::CreateShader(const GLchar * source, GLenum type)
 void OsdOpenGL::InitVertexBuffer(float  scalex,float scaley)\r
 {\r
   Video* video=Video::getInstance();\r
-  float texx=((float)video->getScreenWidth())/1024.f;\r
-  float texy=((float)video->getScreenHeight())/1024.f;\r
+  float texx=1.f;//((float)video->getScreenWidth())/1024.f;\r
+  float texy=1.f;((float)video->getScreenHeight())/1024.f;\r
   OSDCOLOR osdcolor={1.f,1.f,1.f,1.f};\r
 \r
  // osdvertices[0].c=osdcolor;\r
old mode 100644 (file)
new mode 100755 (executable)
index 034b782..ad5fbfe
@@ -62,14 +62,9 @@ int SurfaceOpenGL::create(UINT width, UINT height)
 \r
 \r
        if (this == screen) { // We do not need locking here, since the osd calls this\r
-               sheight = 64;\r
-               swidth = 64;\r
-               while (sheight < height) { // should be a power of 2\r
-                       sheight *= 2;\r
-               }\r
-               while (swidth < width) { // should be a power of 2\r
-                       swidth *= 2;\r
-               }\r
+\r
+               swidth=width;\r
+               sheight=height;\r
                glGenTextures(1, &gltexture);\r
 \r
                glBindTexture(GL_TEXTURE_2D, gltexture);\r