зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6be500c180
Коммит
405d1d3900
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче