DXGL r621 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r620
|
r621
|
r622
>
Date:
21:50, 28 September 2015
Author:
admin
Status:
new
Tags:
Comment:
Flip FBO objects when flipping a texture.
Clear FBO state when flipping a texture.
Modified paths:
/ddraw/glRenderer.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glRenderer.cpp
—
—
@@ -3110,15 +3110,16 @@
3111
3111
int i, j, k;
3112
3112
int vsync = 0;
3113
3113
GLuint tmp;
3114
- //MIPMAP tmp2[15];
3114
+ FBO tmp2[15];
3115
3115
int mipcount = fliplist[0]->ddsd.dwMipMapCount;
3116
- //memcpy(&tmp2, &fliplist[0]->mipmaps, mipcount*sizeof(MIPMAP));
3117
3116
if (!mipcount) mipcount = 1;
3117
+ glUtil_SetFBO(This->util, NULL);
3118
3118
for (k = 0; k < mipcount; k++)
3119
3119
{
3120
3120
if (fliplist[0]->mipmaps[k].dirty & 1)
3121
3121
glTexture__Upload(fliplist[0], k, FALSE, FALSE);
3122
3122
fliplist[0]->mipmaps[k].dirty |= 2;
3123
+ tmp2[k] = fliplist[0]->mipmaps[k].fbo;
3123
3124
}
3124
3125
for (i = 0; i < flips; i++)
3125
3126
{
—
—
@@ -3130,8 +3131,8 @@
3131
3132
if (fliplist[j]->mipmaps[k].dirty & 1)
3132
3133
glTexture__Upload(fliplist[j], k, FALSE, FALSE);
3133
3134
fliplist[j]->mipmaps[k].dirty |= 2;
3135
+ fliplist[j]->mipmaps[k].fbo = fliplist[j + 1]->mipmaps[k].fbo;
3134
3136
}
3135
- //memcpy(&fliplist[j]->mipmaps, &fliplist[j + 1]->mipmaps, mipcount*sizeof(MIPMAP));
3136
3137
fliplist[j]->id = fliplist[j + 1]->id;
3137
3138
}
3138
3139
for (k = 0; k < mipcount; k++)
—
—
@@ -3139,9 +3140,9 @@
3140
3141
if (fliplist[count - 1]->mipmaps[k].dirty & 1)
3141
3142
glTexture__Upload(fliplist[count - 1], k, FALSE, FALSE);
3142
3143
fliplist[count - 1]->mipmaps[k].dirty |= 2;
3144
+ fliplist[count - 1]->mipmaps[k].fbo = tmp2[k];
3143
3145
}
3144
3146
fliplist[count - 1]->id = tmp;
3145
- //memcpy(&fliplist[count - 1]->mipmaps, &tmp2, mipcount*sizeof(MIPMAP));
3146
3147
}
3147
3148
if (framebuffer)
3148
3149
{
Navigation menu
Personal tools
Log in
Namespaces
Special page
English
expanded
collapsed
Views
More
expanded
collapsed
Search
Navigation
Home
Main page
Recent changes
Random page
MediaWiki help
Introduction
Progress
Downloads
Source code
Build from source
AppDB
Bug reports
Forums
Tools
Special pages
Printable version