DXGL r111 - Code Review
For
DXGL
(
recent comments
|
status changes
|
tags
|
authors
|
states
|
release notes
|
statistics
)
Jump to navigation
Jump to search
Repository:
DXGL
Revision:
<
r110
|
r111
|
r112
>
Date:
02:52, 4 March 2012
Author:
admin
Status:
new
Tags:
Comment:
Fix EXT_framebuffer_object compatibility
Modified paths:
/ddraw/glExtensions.cpp
(modified) (
history
)
/ddraw/glutil.cpp
(modified) (
history
)
Diff
[
purge
]
Index: ddraw/glExtensions.cpp
—
—
@@ -166,7 +166,7 @@
167
167
glBindFramebufferEXT = (PFNGLBINDFRAMEBUFFEREXTPROC)wglGetProcAddress("glBindFramebufferEXT");
168
168
glGenRenderbuffersEXT = (PFNGLGENRENDERBUFFERSEXTPROC)wglGetProcAddress("glGenRenderbuffersEXT");
169
169
glBindRenderbufferEXT = (PFNGLBINDRENDERBUFFEREXTPROC)wglGetProcAddress("glBindRenderbufferEXT");
170
- glFramebufferTexture2DEXT = (PFNGLFRAMEBUFFERTEXTURE2DEXTPROC)wglGetProcAddress("glFramebufferTexture2D");
170
+ glFramebufferTexture2DEXT = (PFNGLFRAMEBUFFERTEXTURE2DEXTPROC)wglGetProcAddress("glFramebufferTexture2DEXT");
171
171
glCheckFramebufferStatusEXT = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)wglGetProcAddress("glCheckFramebufferStatusEXT");
172
172
glDeleteFramebuffersEXT = (PFNGLDELETEFRAMEBUFFERSEXTPROC)wglGetProcAddress("glDeleteFramebuffersEXT");
173
173
}
Index: ddraw/glutil.cpp
—
—
@@ -34,17 +34,22 @@
35
35
else if(GLEXT_EXT_framebuffer_object)
36
36
{
37
37
glGenFramebuffersEXT(1,&fbo);
38
- glBindFramebufferEXT(GL_FRAMEBUFFER,0);
38
+ glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,0);
39
39
}
40
40
}
41
41
42
42
void DeleteFBO()
43
43
{
44
- glBindFramebuffer(GL_FRAMEBUFFER,0);
45
44
if(GLEXT_ARB_framebuffer_object)
45
+ {
46
+ glBindFramebuffer(GL_FRAMEBUFFER,0);
46
47
glDeleteFramebuffers(1,&fbo);
48
+ }
47
49
else if(GLEXT_EXT_framebuffer_object)
50
+ {
51
+ glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,0);
48
52
glDeleteFramebuffersEXT(1,&fbo);
53
+ }
49
54
}
50
55
51
56
GLenum SetFBO(GLint color, GLint z, bool stencil)
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