Allow MakePixelTexture to use a subrange.

For example, if it has a larger texture it wants to reuse, it can control
this via texcoords.  Let's keep it at top left, though.
This commit is contained in:
Unknown W. Brackets
2017-03-22 20:56:26 -07:00
parent d408b9980a
commit 3fbb545451
13 changed files with 33 additions and 25 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ FramebufferManagerGLES::~FramebufferManagerGLES() {
delete [] convBuf_;
}
void FramebufferManagerGLES::MakePixelTexture(const u8 *srcPixels, GEBufferFormat srcPixelFormat, int srcStride, int width, int height) {
void FramebufferManagerGLES::MakePixelTexture(const u8 *srcPixels, GEBufferFormat srcPixelFormat, int srcStride, int width, int height, float &u1, float &v1) {
if (drawPixelsTex_ && (drawPixelsTexFormat_ != srcPixelFormat || drawPixelsTexW_ != width || drawPixelsTexH_ != height)) {
glDeleteTextures(1, &drawPixelsTex_);
drawPixelsTex_ = 0;