Bug 604395 - OpenGL contexts use uninitialized format, often resulting in failure to create - r+sr=vladimir, a=bjacob:trust me, we want this in beta7.

Note: pushed by bjacob -- so complain to me if you're not happy about that.
This commit is contained in:
Julian Seward 2010-10-31 10:32:46 -04:00
Родитель 6be500c180
Коммит 405d1d3900
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -295,10 +295,11 @@ struct THEBES_API ContextFormat
};
ContextFormat() {
memset(this, 0, sizeof(this));
memset(this, 0, sizeof(*this));
}
ContextFormat(const StandardContextFormat cf) {
memset(this, 0, sizeof(*this));
switch (cf) {
case BasicRGBA32:
red = green = blue = alpha = 8;