mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-10 02:51:39 +00:00
remove usage of glMultiTexCoord2f
Signed-off-by: Ryan Houdek <Sonicadvance1@gmail.com>
This commit is contained in:
parent
fb92c338af
commit
888b5fb061
4 changed files with 21 additions and 11 deletions
|
@ -317,16 +317,19 @@ void XFBSource::Draw(const MathUtil::Rectangle<float> &sourcerc,
|
|||
sourcerc.right, sourcerc.top,
|
||||
sourcerc.right, sourcerc.bottom
|
||||
};
|
||||
GLfloat tex2[] = { // For TEXTURE1
|
||||
0.0f, 0.0f,
|
||||
0.0f, 1.0f,
|
||||
1.0f, 1.0f,
|
||||
1.0f, 0.0f
|
||||
};
|
||||
|
||||
glClientActiveTexture(GL_TEXTURE0);
|
||||
|
||||
glMultiTexCoord2f(GL_TEXTURE1, 0, 0);
|
||||
glMultiTexCoord2f(GL_TEXTURE1, 0, 1);
|
||||
glMultiTexCoord2f(GL_TEXTURE1, 1, 1);
|
||||
glMultiTexCoord2f(GL_TEXTURE1, 1, 0);
|
||||
|
||||
glVertexPointer(2, GL_FLOAT, 0, vtx1);
|
||||
glClientActiveTexture(GL_TEXTURE0);
|
||||
glTexCoordPointer(2, GL_FLOAT, 0, tex1);
|
||||
glClientActiveTexture(GL_TEXTURE1);
|
||||
glTexCoordPointer(2, GL_FLOAT, 0, tex2);
|
||||
glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue