1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Mostly restores Atari 2600 output. PAL colours need work.

This commit is contained in:
Thomas Harte
2018-11-29 18:26:05 -08:00
parent a25470ee41
commit 6be46ae921
6 changed files with 140 additions and 126 deletions
+5 -2
View File
@@ -16,9 +16,9 @@ namespace {
/// The texture unit from which to source 1bpp input data.
constexpr GLenum SourceData1BppTextureUnit = GL_TEXTURE0;
/// The texture unit from which to source 2bpp input data.
constexpr GLenum SourceData2BppTextureUnit = GL_TEXTURE1;
//constexpr GLenum SourceData2BppTextureUnit = GL_TEXTURE1;
/// The texture unit from which to source 4bpp input data.
constexpr GLenum SourceData4BppTextureUnit = GL_TEXTURE2;
//constexpr GLenum SourceData4BppTextureUnit = GL_TEXTURE2;
/// The texture unit which contains raw line-by-line composite, S-Video or RGB data.
constexpr GLenum UnprocessedLineBufferTextureUnit = GL_TEXTURE3;
@@ -102,6 +102,9 @@ ScanTarget::~ScanTarget() {
void ScanTarget::set_modals(Modals modals) {
modals_ = modals;
// TODO: almost none of the below can occur here, as this is not necessarily an OpenGL thread.
// Whoops!
const auto data_type_size = Outputs::Display::size_for_data_type(modals.input_data_type);
if(data_type_size != data_type_size_) {
// TODO: flush output.