Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
melonDS
Commits
0688a15e
Commit
0688a15e
authored
Aug 20, 2020
by
Arisotura
Browse files
blarg
parent
959e7f56
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/GPU3D_OpenGL.cpp
View file @
0688a15e
...
...
@@ -372,6 +372,8 @@ bool Init()
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_MAG_FILTER
,
GL_NEAREST
);
glTexImage2D
(
GL_TEXTURE_2D
,
0
,
GL_RGB5_A1
,
1024
,
48
,
0
,
GL_RGBA
,
GL_UNSIGNED_SHORT_1_5_5_5_REV
,
NULL
);
glBindFramebuffer
(
GL_FRAMEBUFFER
,
0
);
return
true
;
}
...
...
@@ -479,6 +481,8 @@ void SetRenderSettings(GPU::RenderSettings& settings)
glBindBuffer
(
GL_PIXEL_PACK_BUFFER
,
PixelbufferID
);
glBufferData
(
GL_PIXEL_PACK_BUFFER
,
256
*
192
*
4
,
NULL
,
GL_DYNAMIC_READ
);
glBindFramebuffer
(
GL_FRAMEBUFFER
,
0
);
//glLineWidth(scale);
//glLineWidth(1.5);
}
...
...
src/GPU_OpenGL.cpp
View file @
0688a15e
...
...
@@ -121,6 +121,8 @@ bool Init()
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_MIN_FILTER
,
GL_NEAREST
);
glTexParameteri
(
GL_TEXTURE_2D
,
GL_TEXTURE_MAG_FILTER
,
GL_NEAREST
);
glBindFramebuffer
(
GL_FRAMEBUFFER
,
0
);
return
true
;
}
...
...
@@ -157,6 +159,8 @@ void SetRenderSettings(RenderSettings& settings)
glBindFramebuffer
(
GL_FRAMEBUFFER
,
CompScreenOutputFB
);
glFramebufferTexture
(
GL_FRAMEBUFFER
,
GL_COLOR_ATTACHMENT0
,
CompScreenOutputTex
,
0
);
glDrawBuffers
(
1
,
fbassign
);
glBindFramebuffer
(
GL_FRAMEBUFFER
,
0
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment